Help needed for a small backup script

Vpower

Verified User
Joined
Mar 11, 2004
Messages
47
Location
Oslo/finnmark, Norway
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? :)
 
Last edited:
you sure?

i think you have a mistake in one of your steps because everything doesn't make sense.

later,
 
oh now I understand... You missed the spot where you have to extract the gz file before managing its files.

its not a hard script, but i barely remember shell scripting

hope someone will help out

peace,
 
Back
Top