tar -cvf /dev/rmt/tps4d5 ./Directory_Name >& logfile
The above make backup of directory_name and redirects the data being backed up to a logfile. However I would like the log file to also display the date,time of when each file was backed up and this should be displayed in the log file.
Can anyone let me know if the command below will work or do i need to make changes if so what changed do i need.
tar -cvf /dev/rmt/tps4d5 (date; ./Directory_Name) >& logfile
any help is much appreciated
The above make backup of directory_name and redirects the data being backed up to a logfile. However I would like the log file to also display the date,time of when each file was backed up and this should be displayed in the log file.
Can anyone let me know if the command below will work or do i need to make changes if so what changed do i need.
tar -cvf /dev/rmt/tps4d5 (date; ./Directory_Name) >& logfile
any help is much appreciated