[ale] tar and date

Yu, Jerry Jerry.Yu at Voicecom.com
Thu Mar 24 08:47:24 EST 2005


you may want to put the resultant YYYY-MM-DD.tar.gz at a location other than your target backup directory, 
or exclude it from your 'tar' command.

# -----Original Message-----
# From: ale-bounces at ale.org [mailto:ale-bounces at ale.org]
# Sent: Wednesday, March 23, 2005 4:46 PM
# To: Atlanta Linux Enthusiasts
# Subject: Re: [ale] tar and date
# 
# 
# Preston Boyington wrote:
# > I want to have a shell script (that will run via a cron 
# job) to tar.gz three directories and append the date to the 
# single file (today.tar.gz).  Then I will rsync with another drive.
# > 
# > I think I need to do something like:
# > 
# > ------------------------
# > #!/bin/bash
# > 
# > /bin/tar -zcpf /usr/local/share/data/`date 
# +%Y-%m-%d`.tar.gz /usr/local/share/data/
# > 
# > rsync -CPaur /usr/local/share/data/ /backup/data/
# > -------------------------
# > 
# > Does this look remotely correct to anyone?  Anything I am 
# forgetting?
# 
# Looks fine to me.
# 
# -- 
# Until later, Geoffrey
# _______________________________________________
# Ale mailing list
# Ale at ale.org
# http://www.ale.org/mailman/listinfo/ale
# 

This email and any attached files herein contain information that is intended only for the use of the individual or entity to whom it is addressed and may contain information that is legally privileged, confidential or otherwise exempt from disclosure under applicable laws. If the reader of this message is not the recipient, any disclosure, dissemination, distribution, copying or other use or retention of this communication or its substance is prohibited.




More information about the Ale mailing list