Sanjay said:
Hi Olof,
Thank you I'm using your strarc program. It was able to read most of the
chars but failed on couple of them. This is what I'm doing
c:\> strarc -cjd:dirpath | strarc -xd:destdirpath
It is throwing a warning/error msg for almost every file in the dirpath (it
just a variable that I used here, actually I'm typing the complete path of
the dir at hte command prompt). Some says file already exists, some says
access is denied and system cannot find hte specified path etc.
Does it actually copy the files anyway (just warning messages) or does
it completely refuse to copy the files? Note that if the error message
says that the file already exists that means you have not told strarc to
overwrite existing files, use the -o switch for that.
If you are copying to a Samba server or to some other non-NTFS
destination some error messages may tell that not all meta-data can be
restored, like security descriptors, some attributes or alternate
streams etc. It is better in this case to create a backup archive file
instead of copying files to a new directory tree, e.g.:
c:\> strarc -cjd:dirpath destdirpath\archive.sa
With a backup archive file you will never lose any backed up information
because of limitations of the filesystem where you store the backup.
And does your program is capable of deleting files in the dest dir that are
not there in the source dir, kinda like rsync.
No, sorry I have not included such features and I am not currently
planning to do so. Maybe in the future if more users ask for it or I may
create a special release if someone shares modified source code with
such features added.
And how would I do a
differential backup for 5 days a week. Could you give me the required options
to make this work?
I have some samples in the text file that is included in strarc.zip, but
basically expained, you use the -m (method) switch. First you create a
full backup:
strarc -cjd:dirpath -m:f | strarc -xod:destpath
This will clear archive attributes on the backed up files. Then on the
other weekdays you do a differential backup:
strarc -cjd:dirpath -m:d | strarc -xod:destpath
This will backup all files with archive attribute set without clearing
the archive attributes.
But if you consider creating backup archive files instead of copying:
strarc -cjd:dirpath -m:f destpath\backup_full.sa
and then
strarc -cjd:dirpath -m:d destpath\backup_monday.sa
strarc -cjd:dirpath -m:d destpath\backup_tuesday.sa
etc...
To restore from such backup archives first restore the full backup:
strarc -xd:dirpath destpath\backup_full.sa
Then the diff archives:
strarc -xd:dirpath -o:a destpath\backup_monday.sa
strarc -xd:dirpath -o:a destpath\backup_tuesday.sa
etc...
You can also create a full backup archive file and then append the diff
backups to that archive file to make restore operation easier, using the
-a (append) switch. First the full backup without -a (overwriting, new
archive):
strarc -cjd:dirpath -m:f destpath\backup.sa
then the diff backups with -a (appending to archive):
strarc -cajd:dirpath -m:d destpath\backup.sa
To restore such an archive you just need one line:
strarc -xd:dirpath -o:a destpath\backup.sa
This will extract first the full backup and then overwrite with the
differences from the other days. You will lose the possibility to
restore up to a given weekday with this method but on the other hand you
can use exactly the same command to restore the most recent backup
regardless of which weekday backup is most recent.