|
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.
Categorized:
Shell Script Programming
(Article 3725,
Written by Dave Taylor)
Tagged: Previous: Getting external style sheets to link properly Next: Permission to reuse the Wicked Cool scripts Subscribe!
Rather amazingly, there are no comments on this article yet.
I have something to say, now that you mention it, but ...
I do have a comment, now that you mention it!
|
Recommended
Recent Entries
Search
I Need Help!
Apple iPad Help
Articles and Reviews Auctions and Online Shopping Blogs and RSS Feeds Building Web Site Traffic Business and Management CGI Scripts and Web Site Programming Computer and Internet Basics d) None of the Above Facebook Help Google Plus Help HTML and CSS Industry News and Trade Shows iPhone and Cell Phone Help iPod, Sony PSP and MP3 Player Help Mac OS X Help Pay Per Click (PPC) Advertising Search Engine Optimization (SEO) Shell Script Programming Tech Support Video Help The Writing Business Twitter, LinkedIn and Social Network Help Unix and Linux Help Video Game Tips and Help Windows PC Help WordPress Help |