[ale] Backup

Glenn C. Lasher Jr. glasher at nycap.rr.com
Tue Aug 28 13:04:00 EDT 2001


On Tue, 28 Aug 2001, Arafat wrote:

> Could someone please help me out?
>
> I need to run a script that will backup a directory to a network drive once
> every day. With one added detail. If the file I'm backing up is called
> myfolder then the backup file should be
> //mynetworkdrive/myfolder.yy.mm.dd.time
>
> Anyone know how I can do this? Also, I need to do this on both a linux and a
> windoze box.

Can't help you with the Wind Blows side, but on the Linux box, you can:

cp myfolder //mynetworkdrive/myfolder.`date +"%Y.%m.%d.%H%M%S"`

Does that help?

-- 
glasher at nycap.rr.com
After 163 days, Verizon still couln't deliver Telocity DSL.

--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list