Thread: rsync log file with data
i have backed files using script remote server log file output.
log file appended each time.
wish have different log file each time date , time , have yet figure part out.
great.
you should show script.
here's simple bit of shell script generate nice timestamped filename. adjust needed.
code:#!/bin/sh timestamp=$(date +%y%m%d_%h%m%s) outdir="." outprefix="log_" outsuffix=".txt" outfile="${outdir}/${outprefix}${timestamp}${outsuffix}" echo "$outfile"code:$ ./output_file_with_date.sh ./log_20110701_122900.txt
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] rsync log file with data
Ubuntu
Comments
Post a Comment