Need help with creating a script to backup to a USB hard drive.
I'm hoping someone can help me here. Here is my scenario.
Backup all data in C:\Documents and Settings\Username\
Destination: External USB Hard Disk G:\Backup\
I want the backup to be incremental and be able to backup up PST files while Outlook is open. Can someone help me with a script to create a batch file? I've tried everything and it's not working properly.
Thanks so much,
It's pretty easy to create a cwrsync script. Not so easy to do this and copy all files in the user folder due to Windows keeping open lots of files. Happily there is a solution. Microsoft has released several free utilities to allow any command line program to copy open files. I've made such a script using these utils and you can view this script which I use regularly to backup using xcopy or rsync the user profile folder 100% intact. http://mytriops.com/misc/save_profile/ Everything is provided. Any questions, just ask.
Sure you can get rsync to reject files or directories.
See Rsync --help
--exclude=PATTERN exclude files matching PATTERN
There is more to using this switch on the many rsync example web sites.
That took me 30secs to find BTW....
Rsync runs on top of cygwin. At present cygwin has a serious filename length problem.
itefix has a version of cygwin I believe that gets over this.
oops. Sorry about that. I guess I forgot to include this vital cygwin dll (cygiconv-2.dll) in my zip file. I'll add it.
Take a look at the security permissions on the folder. I bet you'll find their cocked up.
Happens to me too with Rsync and Windows.
I run a Windows command program to reset the owner and permissions afterwards.
Its a known problem with Rsync on Windows.
does it for me.