Vpower
Verified User
Hello,
Anybody out there who can help me write a small script that does the following:
1.Create a folder in my /home2/user_backups named with the date the script is run by cron.
2.Delete some user.tar.gz files that I specify
3.Copy the rest of user.tar.gz files to the folder created on step 1.
4.Check for folders with date older than 5 days and delete it.
Pretty please?
Anybody out there who can help me write a small script that does the following:
1.Create a folder in my /home2/user_backups named with the date the script is run by cron.
2.Delete some user.tar.gz files that I specify
3.Copy the rest of user.tar.gz files to the folder created on step 1.
4.Check for folders with date older than 5 days and delete it.
Pretty please?

Last edited: