Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.raspberry-pi > #9552
| From | Martin Gregorie <martin@address-in-sig.invalid> |
|---|---|
| Newsgroups | comp.sys.raspberry-pi |
| Subject | Re: Create a backup of your Raspberry Pi SD card using Windows, Mac OS X, Linux and restore when you need |
| Date | 2015-09-06 19:04 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <msi2n8$id4$1@dont-email.me> (permalink) |
| References | <mscaod.3cs.1@news.alt119.net> <20150905034343.417b5bf8@ntlworld.com> <slrnmukm95.8it.spamtrap42@one.localnet> <20150906183012.4e60ad9f@ntlworld.com> |
On Sun, 06 Sep 2015 18:30:12 +0100, Rob Morley wrote: > On 5 Sep 2015 02:53:25 GMT Robert Riches <spamtrap42@jacob21819.net> > wrote: > >> For either use case, one could use several backup cards and rotate them >> to facilitate several generations of recovery. Rob, >> what else would you consider essential ingredients of a proper backup >> strategy? > > Checking of file creation/modification time stamps and saving a copy of > the new version of the file (after checking it against the currently > saved version). For specified parts of the file hierarchy like /home > and /etc or for the whole file system excluding locations like /tmp and > /var and remote disks. IOW, use rsync to do the job, running it from a script that: 1) mounts the backup card (or checks that its mounted) 2) runs rsync to backup the parts of the filing system yo want to save 3) unmounts the backup card 4) runs fsck against the card to check it for errors I've been doing backups this way for several years. The main benefit is speed because rsync does the minimum amount of work to make the backed up set of files the same as the live set, i.e. the first backup to a new SD card will be slow because everything is copied. After that things are a lot faster because it only removes deleted files and copies new and modified ones. It may take a little initial fiddling to get the script doing exactly what you want but after that backups will be quick and easy. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |
Back to comp.sys.raspberry-pi | Previous | Next — Previous in thread | Find similar | Unroll thread
Create a backup of your Raspberry Pi SD card using Windows, Mac OS X, Linux and restore when you need Eduardo M. <internetado@alt119.net.invalid> - 2015-09-04 14:44 -0300
Re: Create a backup of your Raspberry Pi SD card using Windows, Mac OS X, Linux and restore when you need Rob Morley <nospam@ntlworld.com> - 2015-09-05 03:43 +0100
Re: Create a backup of your Raspberry Pi SD card using Windows, Mac OS X, Linux and restore when you need Robert Riches <spamtrap42@jacob21819.net> - 2015-09-05 02:53 +0000
Re: Create a backup of your Raspberry Pi SD card using Windows, Mac OS X, Linux and restore when you need Rob Morley <nospam@ntlworld.com> - 2015-09-06 18:30 +0100
Re: Create a backup of your Raspberry Pi SD card using Windows, Mac OS X, Linux and restore when you need Martin Gregorie <martin@address-in-sig.invalid> - 2015-09-06 19:04 +0000
csiph-web