You are here: Home Linux Shell/Bash Programmierung Basics Add date into a path
Search
Advanced Search…
E-Mail

Webmail: webmail.wyden.com

E-Mail Preferences: postfix.wyden.com/users

E-Mail Administration: postfix.wyden.com

Statistics
Total: 473
Total Pages: 286
Total Folders: 87
Total Files: 18
Total Links: 26
Last modification: 19.04.2012 15:21
 

Add date into a path

by Wyden Silvan last modified 19.01.2010 11:51

To add the date into a path (e.g. for backups):

datum=$(date +"%Y")-$(date +"%m")-$(date +"%d")
tar -cvf /backup/mybackup_$datum.tar /home