<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Backing up files.</title><link>https://communities.bentley.com/communities/user_communities/fdot_cadd_support/f/fdot---general-microstation/113060/backing-up-files</link><description>Do to SS4 crashing frequently, I am looking for a macro that we can run either manually or at frequent times to keep a good copy thru out the day of the file that we are working on at any given time. We are currently using the command line key in with</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Backing up files.</title><link>https://communities.bentley.com/thread/345649?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2015 14:29:18 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:763d70c3-076b-4cfe-a953-12f7c95c3c04</guid><dc:creator>Heat</dc:creator><description>Terry,&lt;br /&gt;
Great suggestions.&lt;br /&gt;
I do the same, but a little different.&lt;br /&gt;
I placed a batch file in the &amp;quot;Send To&amp;quot; folder so I just right mouse click on a folder to back it up.&lt;br /&gt;
I use %1 as the source.&lt;br /&gt;
I use Xcopy and the /M switch to copy only things that have changed.&lt;br /&gt;
I do hard code the destination folder as C:\ProjectBackup&lt;br /&gt;
I also capture the project number in the source path and add it to the destination path.&lt;br /&gt;
The final backup looks like this:&lt;br /&gt;
C:\ProjectBackup\projectnumber\*.*&lt;br /&gt;
So next time you run it it will only copy changed files, but to the same destination folder.&lt;br /&gt;
You could also use your date routine for folder naming if desired.&lt;br /&gt;
I worry about drive space since most users are data hogs and would run the backup daily (if not hourly). HaHa&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Backing up files.</title><link>https://communities.bentley.com/thread/345648?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2015 14:20:55 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:b4c8025b-b360-4d01-9646-07ab4afa51cc</guid><dc:creator>TWalters</dc:creator><description>I should also mention that this makes time and date folders and does not change the file names... I can also just run it manually or use scheduler. They only downside is I have to manually edit the working folder location or make a batch file for each project. It is a bit of a duct tape and bailing wire solution but it does work. :-)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Backing up files.</title><link>https://communities.bentley.com/thread/345647?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2015 14:18:17 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c342b5f2-cfa0-4cb7-812c-ff8dcde3b576</guid><dc:creator>TWalters</dc:creator><description>Mitch, &lt;br /&gt;
&lt;br /&gt;
I have a .bat file that I call every hour with Task Scheduler (built into Windows). Here is the text:&lt;br /&gt;
&lt;br /&gt;
@echo off&lt;br /&gt;
&lt;br /&gt;
 set date_=%date:/=-%&lt;br /&gt;
 &lt;br /&gt;
 set source=I:\TPA\PRJ\000007318\7318_CobbRoad\25729925201\roadway\working\3D Modeling&lt;br /&gt;
&lt;br /&gt;
 set destin=C:\DATA\!Backups\%date_%&lt;br /&gt;
&lt;br /&gt;
 For /f &amp;quot;tokens=1-2 delims=/:&amp;quot; %%a in (&amp;#39;time /t&amp;#39;) do (set mytime=%%a%%b)&lt;br /&gt;
&lt;br /&gt;
 Set Incrimfolder=&amp;quot;%destin%\%mytime%&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 robocopy &amp;quot;%source%&amp;quot; %Incrimfolder% /s /z /r:3 /w:10 /maxage:15 &lt;br /&gt;
&lt;br /&gt;
pause&lt;br /&gt;
&lt;br /&gt;
&amp;quot;set source&amp;quot; is the project working folder, which I manually edit when I am working on a different projects. &amp;quot;set Destin&amp;quot; is a folder where I keep all the the time and data stamped bakups. This version only makes a copy of the files in the folder that have changed in the last 15 days ( /maxage:15).&lt;br /&gt;
&lt;br /&gt;
I am using the Windows RoboCopy utility to accomplish this. You can learn more about RoboCopy and the syntax here:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://ss64.com/nt/robocopy.html"&gt;ss64.com/.../robocopy.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
and here:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://en.wikipedia.org/wiki/Robocopy"&gt;en.wikipedia.org/.../Robocopy&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Cheers,&lt;br /&gt;
&lt;br /&gt;
Terry&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>