Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #240832

Re: backup directory/file exclusion pattern list for borgbackup

From Andrei POPESCU <andreimpopescu@gmail.com>
Newsgroups linux.debian.user
Subject Re: backup directory/file exclusion pattern list for borgbackup
Date 2021-10-03 09:00 +0200
Message-ID <D43Dz-4pf-1@gated-at.bofh.it> (permalink)
References <D1olb-2Qm-1@gated-at.bofh.it> <D2ejM-1lX-11@gated-at.bofh.it> <D3X57-8u3-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Sb, 02 oct 21, 19:56:02, Default User wrote:
> 
> And . . .  I make a special point of excluding:
> /media
> /media/*
> /mnt
> /mnt/*
> 
> Why?
> 
> Because long ago, when I was just learning to use rsync, I tried to
> use it to do a full-system backup.  Since nobody told me that /mnt and
> /media had to be specifically excluded, rsync did exactly what it was
> told to do, recursively backing up everything, filling up an entire
> 1Tb hard drive, stopping only when it ran out of room!
> 
> I do not ever want that to happen again.
> 
> Fun fact:
> I can use the same exclude list to mirror the same user stuff to a
> different backup directory, with obsessive frequency, using rsync:
> 
> sudo rsync -avHx --delete --stats --exclude-from
> "/home/debian-user/rsync_exclude_list.txt" /home
> /media/debian-user/backup_drive/backups_of_host_home_directory_only

In case of system backups the top-level directories themselves should 
probably be included because they are needed as mount points. rsync's -x 
parameter should already take care of excluding the (special) mounts 
*under* /mnt, /media, /dev, /sys, /run etc.


Hope this helps,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

backup directory/file exclusion pattern list for borgbackup Default User <hunguponcontent@gmail.com> - 2021-09-26 00:30 +0200
  Re: backup directory/file exclusion pattern list for borgbackup Kushal Kumaran <kushal@locationd.net> - 2021-09-26 02:10 +0200
    Re: backup directory/file exclusion pattern list for borgbackup Default User <hunguponcontent@gmail.com> - 2021-09-26 03:10 +0200
      Re: backup directory/file exclusion pattern list for borgbackup Andrei POPESCU <andreimpopescu@gmail.com> - 2021-09-26 11:50 +0200
      Re: backup directory/file exclusion pattern list for borgbackup Kushal Kumaran <kushal@locationd.net> - 2021-09-26 18:00 +0200
  Re: backup directory/file exclusion pattern list for borgbackup Marco Möller <talby@debianlists.mobilxpress.net> - 2021-09-26 17:20 +0200
  Re: backup directory/file exclusion pattern list for borgbackup deloptes <emanoil.kotsev@deloptes.org> - 2021-09-28 08:00 +0200
    Re: backup directory/file exclusion pattern list for borgbackup Default User <hunguponcontent@gmail.com> - 2021-10-03 02:00 +0200
      Re: backup directory/file exclusion pattern list for borgbackup Andrei POPESCU <andreimpopescu@gmail.com> - 2021-10-03 09:00 +0200
        Re: backup directory/file exclusion pattern list for borgbackup Default User <hunguponcontent@gmail.com> - 2021-10-03 16:40 +0200

csiph-web