Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #222060
| From | Bob Weber <bobrweber@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Backup ideas |
| Date | 2020-04-28 22:50 +0200 |
| Message-ID | <A0FkZ-7Y3-9@gated-at.bofh.it> (permalink) |
| References | (4 earlier) <zZ9nc-11C-13@gated-at.bofh.it> <A0AEF-56b-1@gated-at.bofh.it> <A0B7H-5wn-3@gated-at.bofh.it> <A0D9v-6Fu-1@gated-at.bofh.it> <A0DVT-7fC-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On 4/28/20 3:15 PM, Default User wrote: > On 2020-04-28 [TU] at 14:18 EDT, Bob Weber <bobrweber@gmail.com> said: > >> According to the manual the -x option is: >> >> -x, --one-file-system don't cross filesystem boundaries >> >> Question: >> >> When you use rsync, do you ever do it on a live, mounted filesystem >> from within said machine/filesystem (that is, using the same machine)? >> >> Or do you do it on a "dormant" unmounted filesystem, either from >> another machine or from a "live [usb or .iso] utility distribution or >> boot disk from which you have booted the same machine? >> >> Most references to rsync I have seen just seem to accept as a given, >> that you are doing it remotely, from across a LAN (or across the >> world). >> >> And don't seem to address whether the machine/filesystem they are >> rsyncing to/from is "live" (mounted), or can/should be unmounted (like >> it would be when imaging a disk with dd or Clonezilla, for example. >> Yes that is the way I use rsnapshot (which uses rsync) ... on a live system. I do this before an upgrade. rsnapshot copies the files to a directory under /home. I have a very big /home filesystem. The files I am interested in are under /usr /etc and the various bin opt and lib directories. These files will just be open for reading but not for writing. There are log files and mail files under /var that may be copied in an open for write state but I can loose those files if necessary. Also, files under /tmp and /run may be lost but those directories are usually cleared on reboot. I do run PostgreSQL but the data files are under /home (mounted from another partition) ... these are the kind of files that should be backed up on a "dormant" filesystem or after PostgreSQL is shut down. I also run several virtual machines but their files are also under /home. To restore the rsnapshot backup if I need to I run sysrescuecd. I mount the filesystems on /root/src and /root/dst and use rsync with the correct options including --delete to get rid of any extra files that were just upgraded. I usually use -aHXA --one-file-system --progress for rsync backup options. That way I can be sure the file attributes will be preserved. A note about borgbackup. I used it a few years ago but I found that ALL attributes were not backed up. Maybe I didn't use the correct options. The many options can be confusing. The backup medium should be a journaling filesystem according to the docs. rsnapshot just duplicates the file structure of the source so you can just get one file back if you want rather than having to use borg to get the backed up file. -- *...Bob*
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
(none) Default User <hunguponcontent@gmail.com> - 2020-04-22 23:00 +0200
Re: David <bouncingcats@gmail.com> - 2020-04-23 12:00 +0200
Re: "Alexander V. Makartsev" <avbetev@gmail.com> - 2020-04-23 16:30 +0200
Re: David Christensen <dpchrist@holgerdanske.com> - 2020-04-24 00:10 +0200
Re: Default User <hunguponcontent@gmail.com> - 2020-04-24 03:00 +0200
Re: David Christensen <dpchrist@holgerdanske.com> - 2020-04-24 11:00 +0200
Backup ideas Andy Smith <andy@strugglers.net> - 2020-04-24 17:40 +0200
Re: Backup ideas Celejar <celejar@gmail.com> - 2020-04-24 18:30 +0200
Re: Backup ideas Default User <hunguponcontent@gmail.com> - 2020-04-28 17:50 +0200
Re: Backup ideas Andrei POPESCU <andreimpopescu@gmail.com> - 2020-04-28 18:20 +0200
Re: Backup ideas Default User <hunguponcontent@gmail.com> - 2020-04-28 20:30 +0200
Re: Backup ideas Default User <hunguponcontent@gmail.com> - 2020-04-28 21:20 +0200
Re: Backup ideas David Christensen <dpchrist@holgerdanske.com> - 2020-04-28 22:30 +0200
Re: Backup ideas Bob Weber <bobrweber@gmail.com> - 2020-04-28 22:50 +0200
Re: Backup ideas Bob Weber <bobrweber@gmail.com> - 2020-04-28 20:20 +0200
Re: Backup ideas Andy Smith <andy@strugglers.net> - 2020-04-28 22:40 +0200
Re: Backup ideas Celejar <celejar@gmail.com> - 2020-04-29 06:40 +0200
Re: Backup ideas Celejar <celejar@gmail.com> - 2020-04-29 06:30 +0200
Re: Backup ideas Alessandro Baggi <alessandro.baggi@gmail.com> - 2020-05-01 12:40 +0200
Re: Backup ideas Default User <hunguponcontent@gmail.com> - 2020-05-04 03:30 +0200
csiph-web