search for: log_rsync

Displaying 1 result from an estimated 1 matches for "log_rsync".

Did you mean: do_rsync
2001 Oct 24
1
Generating cpio list.
...is maintain an incremental backup on tape. The way for me to do this ( of course ) is to take the output of rsync and use it to generate a list of files for cpio. The basic ideal is something like this declare -i head tail # gets the first line with total: at the begining head=$(grep -n ^total: $log_rsync|awk -F: '{print $1}') head=$head-1 # chop off first two lines tail=$head-2 head -n $head $log_rsync|tail -n $tail -|grep -v uptodate|cpio -o > /tape_device Is this a way of accurately generating the list of modified files? Also does it make sense to set the -a option of cpio ( it does...