Skip to main content

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

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support