2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 3741
/ 2 Years ago, wed, july 6, 2022, 6:33:46
I want to make a cronjob that makes a copy of every file in /var/log, and puts it in /etc/bak. That i do by making an sh file saying
cp /var/log/*.* /etc/bak
I would like these files not to be overwritten, but to be unique. To do this i figured i want to put the date/time in the filename. Is there any way to make that possible on a batch file copy?
More From » cron