Adding a Date to a Tar file in Linux

| | Comments (1) | TrackBacks (0)

You may want to add the day’s date to a backup file, especially if you are running it as a cron job. The following code example will Gzip Tar the files into a compressed archive with the date inserted:

tar czvf /backups/backup-date +%y%m%d.tgz /files-to-backup/.

where:

%d = day (2 digit) %m = month (2 digit) %y = year (2 digit)

0 TrackBacks

Listed below are links to blogs that reference this entry: Adding a Date to a Tar file in Linux.

TrackBack URL for this entry: http://cyberissues.eu/cgi-bin/mt-tb.cgi/16

1 Comments

avehoose Author Profile Page said:

Debbie said, he deserves an Oscar. christian louboutin Heas been large with his associate as yet merely I feel favor this is the first period heas actually stood out. I think he gave even more because Jessi wasnat therea? copy watches copy watches discount party dresses discount party dresses fake rado fake rado . . the boy kick every unattached mark replica franck muller watches replica franck muller watches . Great job. youtube tAoWFV2d6P4&NR1 Rank Hok & Jamie Sabra & Dominic Pasha Sarah & Jesus Lacey & Kameron Shauna & Cedric Neil & Lauren Anya & Danny Awesome, awesome show! None sucked! Seriously, Iam so impressed with this season because the class of talent is so high. Pretty many anyone who works by this

Leave a comment

About this Entry

This page contains a single entry by Edward Bellamy published on November 18, 2010 1:36 PM.

BT ISDN 2e Boxes - BRI was the previous entry in this blog.

Find a value or string in all files is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

    follow me on Twitter