I have successfully implemented a client server script where the control
channel is set up using a combination of ssh and rsync with windows 98/2K
botch files with Samba shares and UNIX side server scripts with rsync with a
combination of full and incremental on a weekly basis.
This works great, but it has two problems which I need some advice on:
1. The windows share.
Windows 2000 has a 'net share' command which is very useful in starting and
stopping a share ( but it lacks a password option ). Windows 9x does not
have this functionality. Ideally, I would like to have a command line tool
which took three arguments; sharename, localdirectory and password. In this
manner, I could dynamically create a password for each backup session (
either server side or local ) to ensure a level of security for the
transfer. The share would be deleted after the transfer. I wrote a simple
tool some time ago to connect to a share on an NT server which took a user
name and password for the connection ( since the winxx uses the local
username as client username ), but I have not done anything the "other way
around". I have been looking around for such a tool, but to no avail. I have
also posted the questions to the smb newsgroup.
2. Limiting the full backup.
After one week, I end up with the full backup ( which is the first backup of
the week ), and a number of incremental backups for each day during the
week. I can use these files to create the full backup for the next week, but
it does not take into account files deleted during the previous week. I
would not prefer to accumulate files over time, but rather keep the backup
in sync with the client machine. To minimize the actual files transferred; I
have one solution:
a) Copy all files from the full backup last week.
b) Add all changed files during the week
c) Traverse the source backup directory and build a file list 'alist'
d) Delete accumulated files on the local system which is not in the
'alist'
e) rsync from source to full backup for this week.
Seems complicated to me. Anyone?
Thanks for the help.
Hans E.