Join for free
Bruce's Avatar
Bruce
Chatterbox
Bruce is offline
Wollongong, Australia
Joined: Apr 2012
Posts: 15,218
Bruce is male  Bruce has posted at least 25 times and has been a member for 3 months or more 
 
20-11-2017, 07:07 AM
1

For the Holidaying Computer Nerds

As we have discussed before I still use the old DOS based Batch files for convenience and speed.

This is one I use for quick and dirty backing up on the road.
It makes use of the newer Robocopy (Robust Copy - replaced Xcopy)

@echo off
echo.
echo Backing up Lenovo Laptop
echo.
REM
REM Change value of FDate and FName for each trip
REM FDate= oldest Photo/File to copy in format YYYYMMDD
REM FName = Suitable folder Name for Photos ie enter "Gong" and create "Gong Photos" and "Gong Videos" folders
REM
set FDate=20171120
set FName=Eden
echo.

robocopy "%userprofile%\Pictures\2017" "..\%computername%\%Username%\%FName% Photos" /s /r:2 /maxage:%FDate%
robocopy "%userprofile%\Videos\Dash Cam" "..\%computername%\%Username%\%FName% Videos" /s /r:2 /maxage:%FDate%

It is convenient because it only copies photos and videos taken since the start of the current trip as set in the FDATE variable. FNAME ensures that the file name is something you will recognise on the backup disk.

It assumes that you use the standard M$ library directories and the batch file is run from the root directory of the USB backup disk (That is important). Everything from the word robocopy (in bold) is on one line.

The convenience is in the fact that you only have to change the value of FName and FDate once per trip and backing up is then just a double click on the file name (saved as something like Backup.bat)

It will work for several computers as long as the "Computername" is set differently and for several users of the same computer without over writing each others work.
 



© Copyright 2009, Over50sForum   Contact Us | Over 50s Forum! | Archive | Privacy Statement | Terms of Use | Top

Powered by vBulletin Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.