
How do I do just incremental backups?
A reader writes:
"My question concerns backup.sh (script #56 in the book Wicked Cool Shell Scripts). I am a little confused how to set up my directory list file INITIALLY to use for the backup script to work. Do you have to do a -f (full backup) first, then I'm free to incrementally backup as desired? Even then I'm only interested in backing some key directories not my whole home space...." To do that you would need to fool the script into thinking that you've done that first full backup by manually creating a starting 'timestamp' file. You can do this by entering the following two commands at the prompt: timestamp="$(date +'%m%d%I%M')" touch -t $timestamp $HOME/.backup.timestampThat should take care of things and you can run the incremental backups starting at that point. But I nonetheless recommend at least one full backup rather than circumventing it. You can never have too many backups.
Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Stumble Upon
Categorized:
Shell Script Programming
(Article 3725)
Tagged: Previous: Getting external style sheets to link properly Next: Permission to reuse the Wicked Cool scripts Subscribe!
Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.
Rather amazingly, there are no comments on this article yet.
I have a lot to say, but ...
I do have a comment, now that you mention it!
|
![]()
Search
Find just the answers you seek from among our 1700+ free tech support articles by using our Lijit search engine.
Help!
Subscribe to
Ask Dave Taylor!
Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.
Articles and Reviews
Auctions and Online Shopping Blogs and RSS Feeds Building Web site traffic Business and Management Cell Phones and Mobile Phones CGI Scripts and Web Site Programming Computer and Internet Basics d) None of the Above HTML and CSS Mac OS X Help MySpace, Facebook, Twitter and Social Network Help Pay Per Click (PPC) Search Engine Optimization Shell Script Programming Sony PSP, MP3 Players, Etc. The Writing Business Unix and Linux Help Video Game Tips and Help Windows Help
Recent Entries
Join the List!
Book Links
|