RE: backup in crontab

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>but how can i 'cp' (copy) stating the current date and append it to the
>>name of the folder ex. 'evolution-10-21-2003'

Try something like this..

Create a bash script

with something like  (may need some serious tweaking.. my bash skills are
not very good)

$date=date
cp -R /home/folderx/ /mnt/backup/folderx.$date

something like that.. I'm lazy to look at my Cron script.. If you really
need more help than that, I can mail you my backup script.

(although I have serious issues on whether my script is a
incremental/differential backup... I've got to make a post on this to get my
facts right..)


Cheers,                                                 .^.
Mun Heng, Ow                                            /V\
H/M Engineering                                       /(   )\
Western Digital M'sia                                  ^^-^^
DID : 03-7870 5168                          The Linux Advocate

        


-----Original Message-----
From: kent emia [mailto:kent-cdr@xxxxxxxxxxxxxxx]
Sent: Tuesday, October 21, 2003 1:57 PM
To: redhat-shrike
Subject: backup in crontab



i made a simple backup in my evolution folder running at every 12 noon
this is ok. 

but how can i 'cp' (copy) stating the current date and append it to the
name of the folder ex. 'evolution-10-21-2003'

tia
-- 
kent emia <kent-cdr@xxxxxxxxxxxxxxx>


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux