Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #266157
| From | Default User <hunguponcontent@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: rsync --delete vs rsync --delete-after |
| Date | 2024-01-18 02:30 +0100 |
| Message-ID | <HXpod-3OBu-1@gated-at.bofh.it> (permalink) |
| References | <HXgXD-3Jzs-5@gated-at.bofh.it> <HXhTH-3K8d-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, 2024-01-17 at 09:19 -0800, David Christensen wrote:
> On 1/17/24 08:19, Default User wrote:
> > Hello!
> >
> > Opinions, please.
> >
> > I use rsync to copy my primary backup drive to a secondary backup
> > drive
> > , so that the secondary backup drive is theoretically always an
> > exact
> > copy of the primary backup drive.
> >
> > Here is the rsync command I use:
> >
> > time sudo rsync -aAXHxvv --delete-after --numeric-ids --
> > info=progress2,stats2,name2 --
> > exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/m
> > edia
> > /*","/lost+found"} /media/default/MSD0001/ /media/default/MSD0002/
> >
> > Question:
> > I use rsync --delete-after because it might seem to be "safer", so
> > in
> > case of a "glitch" of any kind, no file ever disappears from both
> > the
> > source drive and the destination drive.
> >
> > However, I have read that using rsync --delete instead of rsync --
> > delete-after is faster and uses less memory, and so is more
> > efficient.
> >
> > Note: The current copy process time varies, but takes a long time -
> > last night 131 minutes.
> > :(
> >
> > Disk space used is not currently an issue.
> >
> > But, is rsync --delete AS SAFE as rsync --delete-after?
>
>
> In the past, I used the --backup and --backup-dir options to retain
> files on the destination.
>
>
> Then I moved my primary backup to ZFS, implemented snapshots, and
> implemented replication to the secondard backup devices.
>
>
> David
>
Hi guys, thanks for the replies.
BTW, the two backup drives are external 4 Gb USB HDDs. The secondary
backup drive is always kept away from the computer, in a locked steel
box, except when it is attached to the computer to have the primary
backup drive copied to it.
The primary backup drive is almost always attached to the computer, so
that I can access files archived there, that are not on the computer.
Probably not good practice, but that's why I have the secondary backup
drive.
I guess in the back of my mind I was thinking of a scenario where a
file on the primary backup drive might be corrupted or deleted before
being copied to the secondary backup drive. Then if it is not present
on the primary backup drive, rsync dutifully deletes it from the
secondary backup drive. If the file is no longer on the computer's
internal SSD, I am then SOL.
BTW(2), I do use rsnapshot with cron jobs to back up the internal SSD
to the primary backup drive daily (and weekly, monthly, yearly). But I
am not sure if I could also use it to do copies of the primary backup
drive to the secondary backup drive (maybe using an additional
configuration file)?
I have also thought of trying to use partclone to copy the data from
the primary backup drive to the secondary backup drive. Why not try,
since rsync takes an hour and a half, every day!
As for ZFS . . . I wish! But I think the resource requirements would
be too high for my setup, so it probably would be impractical - or
impossible. And then there's the complexity. And the learning curve.
Finally I really should have a third backup drive in the mix. Yes, I
am familiar with the 1-2-3 backup theory. But the third backup drive
could not be off-site, for various reasons. And I do have other things
to do rather than spend all day, every day, managing backups.
<Sigh.>
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
rsync --delete vs rsync --delete-after Default User <hunguponcontent@gmail.com> - 2024-01-17 17:30 +0100
Re: rsync --delete vs rsync --delete-after David Christensen <dpchrist@holgerdanske.com> - 2024-01-17 18:30 +0100
Re: rsync --delete vs rsync --delete-after Keith Bainbridgge <keithrbaugroups@gmail.com> - 2024-01-18 00:10 +0100
Re: rsync --delete vs rsync --delete-after Default User <hunguponcontent@gmail.com> - 2024-01-18 02:30 +0100
Re: rsync --delete vs rsync --delete-after David Christensen <dpchrist@holgerdanske.com> - 2024-01-18 08:40 +0100
Re: rsync --delete vs rsync --delete-after Michael Kjörling <2695bd53d63c@ewoof.net> - 2024-01-18 12:10 +0100
Re: rsync --delete vs rsync --delete-after <tomas@tuxteam.de> - 2024-01-18 12:20 +0100
Re: rsync --delete vs rsync --delete-after Michael Kjörling <2695bd53d63c@ewoof.net> - 2024-01-18 12:50 +0100
Re: rsync --delete vs rsync --delete-after Michel Verdier <mv524@free.fr> - 2024-01-18 14:00 +0100
Re: rsync --delete vs rsync --delete-after Kushal Kumaran <kushal@locationd.net> - 2024-01-17 19:30 +0100
Re: rsync --delete vs rsync --delete-after Default User <hunguponcontent@gmail.com> - 2024-01-17 21:00 +0100
Re: rsync --delete vs rsync --delete-after Michael Kjörling <2695bd53d63c@ewoof.net> - 2024-01-17 21:20 +0100
Re: rsync --delete vs rsync --delete-after Andy Smith <andy@strugglers.net> - 2024-01-17 22:00 +0100
Re: rsync --delete vs rsync --delete-after Michel Verdier <mv524@free.fr> - 2024-01-18 02:40 +0100
Re: rsync --delete vs rsync --delete-after hw <hw@adminart.net> - 2024-01-18 12:20 +0100
Re: rsync --delete vs rsync --delete-after Ralph Aichinger <ra@h5.or.at> - 2024-01-18 13:50 +0100
Re: rsync --delete vs rsync --delete-after Michael Kjörling <2695bd53d63c@ewoof.net> - 2024-01-18 14:10 +0100
Re: rsync --delete vs rsync --delete-after Ralph Aichinger <ra@h5.or.at> - 2024-01-18 15:30 +0100
Re: rsync --delete vs rsync --delete-after hw <hw@adminart.net> - 2024-01-26 16:40 +0100
Re: rsync --delete vs rsync --delete-after Michael Kjörling <2695bd53d63c@ewoof.net> - 2024-01-26 17:30 +0100
Re: rsync --delete vs rsync --delete-after hw <hw@adminart.net> - 2024-01-28 18:00 +0100
Home UPS recommendations (Was Re: rsync --delete vs rsync --delete-after) Andy Smith <andy@strugglers.net> - 2024-01-26 16:20 +0100
Re: Home UPS recommendations (Was Re: rsync --delete vs rsync --delete-after) fxkl47BF@protonmail.com - 2024-01-26 16:30 +0100
Re: Home UPS recommendations Michael Kjörling <2695bd53d63c@ewoof.net> - 2024-01-26 16:40 +0100
Re: Home UPS recommendations Tixy <tixy@yxit.co.uk> - 2024-01-26 17:20 +0100
Re: Home UPS recommendations "James H. H. Lampert" <jamesl@touchtonecorp.com> - 2024-01-26 17:20 +0100
Re: Home UPS recommendations (Was Re: rsync --delete vs rsync --delete-after) Roger Price <debian@rogerprice.org> - 2024-01-26 19:10 +0100
Re: Home UPS recommendations (Was Re: rsync --delete vs rsync --delete-after) David Wright <deblis@lionunicorn.co.uk> - 2024-01-26 20:50 +0100
Re: Home UPS recommendations (Was Re: rsync --delete vs rsync --delete-after) Roger Price <debian@rogerprice.org> - 2024-01-27 11:00 +0100
Re: Home UPS recommendations Felix Miata <mrmazda@earthlink.net> - 2024-01-26 20:10 +0100
Re: Home UPS recommendations ghe2001 <ghe2001@protonmail.com> - 2024-01-26 20:30 +0100
Re: Home UPS recommendations debian-user@howorth.org.uk - 2024-01-26 21:50 +0100
Re: Home UPS recommendations (Was Re: rsync --delete vs rsync --delete-after) hw <hw@adminart.net> - 2024-01-28 19:00 +0100
Re: Home UPS recommendations (Was Re: rsync --delete vs rsync --delete-after) Andy Smith <andy@strugglers.net> - 2024-01-28 20:00 +0100
Re: Home UPS recommendations (Was Re: rsync --delete vs rsync--delete-after) gene heskett <gheskett@shentel.net> - 2024-01-29 07:00 +0100
Re: Home UPS recommendations (Was Re: rsync --delete vs rsync --delete-after) Andy Smith <andy@strugglers.net> - 2024-02-08 16:30 +0100
Re: Home UPS recommendations (Was Re: rsync --delete vs rsync --delete-after) Charles Curley <charlescurley@charlescurley.com> - 2024-02-08 17:30 +0100
Re: Home UPS recommendations (Was Re: rsync --delete vs rsync --delete-after) Curt <curty@free.fr> - 2024-02-08 17:40 +0100
Re: Home UPS recommendations Michael Kjörling <2695bd53d63c@ewoof.net> - 2024-02-08 18:00 +0100
Re: Home UPS recommendations (Was Re: rsync --delete vs rsync --delete-after) hw <hw@adminart.net> - 2024-02-09 12:10 +0100
Re: Home UPS recommendations (Was Re: rsync --delete vs rsync --delete-after) Dan Ritter <dsr@randomstring.org> - 2024-02-09 13:10 +0100
Re: Home UPS recommendations (Was Re: rsync --delete vs rsync --delete-after) hw <hw@adminart.net> - 2024-02-09 22:40 +0100
Re: Home UPS recommendations (Was Re: rsync --delete vs rsync --delete-after) Dan Ritter <dsr@randomstring.org> - 2024-02-09 23:30 +0100
Re: Home UPS recommendations (Was Re: rsync --delete vs rsync --delete-after) "Roy J. Tellason, Sr." <roy@rtellason.com> - 2024-02-09 17:40 +0100
Re: Home UPS recommendations (Was Re: rsync --delete vs rsync --delete-after) Stefan Monnier <monnier@iro.umontreal.ca> - 2024-02-09 18:20 +0100
Re: Home UPS recommendations Felix Miata <mrmazda@earthlink.net> - 2024-02-10 01:10 +0100
Re: Home UPS recommendations (Was Re: rsync --delete vs rsync --delete-after) hw <hw@adminart.net> - 2024-02-09 22:50 +0100
Re: Home UPS recommendations (Was Re: rsync --delete vs rsync --delete-after) "Roy J. Tellason, Sr." <roy@rtellason.com> - 2024-02-11 19:10 +0100
Re: Home UPS recommendations Felix Miata <mrmazda@earthlink.net> - 2024-02-09 18:20 +0100
Re: Home UPS recommendations debian-user@howorth.org.uk - 2024-02-09 21:40 +0100
Re: Home UPS recommendations hw <hw@adminart.net> - 2024-02-09 22:50 +0100
Re: Home UPS recommendations Felix Miata <mrmazda@earthlink.net> - 2024-02-10 01:00 +0100
Re: Home UPS recommendations hw <hw@adminart.net> - 2024-02-10 03:20 +0100
Re: Home UPS recommendations Felix Miata <mrmazda@earthlink.net> - 2024-02-10 04:30 +0100
Re: Home UPS recommendations hw <hw@adminart.net> - 2024-02-10 11:10 +0100
Re: Home UPS recommendations Felix Miata <mrmazda@earthlink.net> - 2024-02-10 15:00 +0100
Re: Home UPS recommendations hw <hw@adminart.net> - 2024-02-10 16:50 +0100
Re: Home UPS recommendations Joe <joe@jretrading.com> - 2024-02-10 19:50 +0100
Re: Home UPS recommendations gene heskett <gheskett@shentel.net> - 2024-02-10 22:50 +0100
Re: Home UPS recommendations hw <hw@adminart.net> - 2024-02-11 02:00 +0100
Re: rsync --delete vs rsync --delete-after hw <hw@adminart.net> - 2024-01-26 16:20 +0100
Re: Data and hardware protection measures; was: rsync --delete vs rsync --delete-after Michael Kjörling <2695bd53d63c@ewoof.net> - 2024-01-26 17:00 +0100
Re: Data and hardware protection measures; was: rsync --delete vs rsync --delete-after hw <hw@adminart.net> - 2024-01-28 19:30 +0100
Re: Data and hardware protection measures Michael Kjörling <2695bd53d63c@ewoof.net> - 2024-01-28 20:30 +0100
Re: Data and hardware protection measures Felix Miata <mrmazda@earthlink.net> - 2024-01-28 21:50 +0100
Re: rsync --delete vs rsync --delete-after Ralph Aichinger <ra@h5.or.at> - 2024-01-27 14:10 +0100
Re: rsync --delete vs rsync --delete-after Stefan Monnier <monnier@iro.umontreal.ca> - 2024-01-18 05:20 +0100
Re: rsync --delete vs rsync --delete-after Andy Smith <andy@strugglers.net> - 2024-01-18 15:40 +0100
Re: rsync --delete vs rsync --delete-after Stefan Monnier <monnier@iro.umontreal.ca> - 2024-01-18 16:10 +0100
Re: rsync --delete vs rsync --delete-after Michel Verdier <mv524@free.fr> - 2024-01-18 22:10 +0100
Re: rsync --delete vs rsync --delete-after Andy Smith <andy@strugglers.net> - 2024-01-18 22:50 +0100
Re: rsync --delete vs rsync --delete-after Default User <hunguponcontent@gmail.com> - 2024-01-19 03:40 +0100
Re: rsync --delete vs rsync --delete-after Michel Verdier <mv524@free.fr> - 2024-01-19 08:10 +0100
csiph-web