diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-01-24 04:58:53 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-01-24 04:58:53 +0000 |
commit | 66203a982b3d249bafda9b9272c4c103c19e4a9b (patch) | |
tree | 3226cfbe9bd053a38a4b28180c0edd2419553959 /receiver.c | |
parent | b315601ce07701c4913c48a269775ab3284b25ba (diff) | |
download | rsync-66203a982b3d249bafda9b9272c4c103c19e4a9b.tar.gz rsync-66203a982b3d249bafda9b9272c4c103c19e4a9b.tar.bz2 rsync-66203a982b3d249bafda9b9272c4c103c19e4a9b.zip |
added --backup-dir option from Bob Edwards
this is very useful for incremental backups
Diffstat (limited to 'receiver.c')
-rw-r--r-- | receiver.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -36,7 +36,6 @@ extern char *compare_dest; extern int make_backups; extern char *backup_suffix; - static struct delete_list { dev_t dev; INO_T inode; @@ -146,6 +145,7 @@ static void delete_files(struct file_list *flist) if (-1 == flist_find(flist,local_file_list->files[i])) { char *f = f_name(local_file_list->files[i]); int k = strlen(f) - strlen(backup_suffix); +/* Hi Andrew, do we really need to play with backup_suffix here? */ if (make_backups && ((k <= 0) || (strcmp(f+k,backup_suffix) != 0))) { (void) make_backup(f); @@ -291,6 +291,8 @@ static int receive_data(int f_in,struct map_struct *buf,int fd,char *fname, } +/* main routine for receiver process. Receiver process runs on the + same host as the generator process. */ int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen) { |