Le 11/08/2015 22:54, Rick Stevens a écrit :
> On 08/11/2015 10:52 AM, Diogene Laerce wrote:
>> Hi Rick,
>>
>> Le 11/08/2015 19:18, Rick Stevens a écrit :
>>> On 08/11/2015 09:18 AM, Chris Murphy wrote:
>>>> On Tue, Aug 11, 2015 at 3:05 AM, Diogene Laerce <me_buss...@yahoo.fr>
>>>> wrote:
>>>>
>>>>>> https://wiki.archlinux.org/index.php/Full_System_Backup_with_rsync
>>>>>
>>>>> Is there a trick I don't see here ? Because if the backup of those
>>>>> directories
>>>>> is enough for a full restoration of a system state, this method is
>>>>> far more
>>>>> efficient than the others, isn't it ? As one does not need to reboot
>>>>> and
>>>>> just have
>>>>> to make a script or/and a cron job to make his own snapshot.
>>>>
>>>> I don't consider a backup and snapshot to be the same thing. Copying
>>>> (or rsyncing) some directories to another volume is a backup. A
>>>> snapshot is a deduplicated copy of something at a particular moment in
>>>> time, on the same volume or storage pool. It's not a backup, in that
>>>> if the pool implodes both the original and snapshot are lost. A
>>>> snapshot can be used as a source for a backup, since you can make a
>>>> snapshot that doesn't change while the backup is happening.
>>>
>>> I agree with Chris. Snapshots are ways of restoring data that has been
>>> perhaps corrupted or deleted or going back in time to some earlier
>>> point in the filesystems' life. They aren't backups.
>>>
>>> Backup philosophies and techniques vary depending on what you need for
>>> your unique situation. I'm not claiming what I do is the best, but this
>>> is what works for me:
>>>
>>> On the last Friday of a month, I plug in a big ESATA or USB3 drive and
>>> use it to store the output of Mondo Rescue. I have the backup in the
>>> form of DVD-sized ISO images I can burn DVDs from and there is a
>>> recovery DVD you can boot from. That gives me a backup usable to
>>> restore to bare metal.
>>>
>>> Once a week (or more often if there's been significant changes), I use
>>> a _different_ ESATA or USB3 drive and run an rsync that backs up
>>> everything except a few things (/proc, /sys, /dev, /media,
>>> /var/log/journal, various caches, etc.) to a directory on that external
>>> drive based on the hostname and date I ran the backup. That permits me
>>> to restore data that's a bit more recent than the MondoRescue stuff.
>>>
>>> I'd be happy to share the MondoArchive and rsync scripts if you wish.
>>> Tweak to suit your needs.
>>
>> Thank you for the offer.
>>
>> I'm going to stick with RedoBackup but I'd really like to have a look at
>> your rsync scripts, and maybe at what various caches you think of.
> 
> The rsync backup is done via this script:
> 
> ---------------------- CUT HERE --------------------------------------
> #!/bin/bash
> # Back up system to a specific directory given on the command line.
> Excludes
> # the /proc, /sys, /dev and /media directories
> MYHOST=`hostname`
> TODAY=`date +%d-%b-%Y`
> if [ $# -lt 1 ]; then
>     TGT="/media/500GB-Drive/Backups/$MYHOST-BackUp-$TODAY"
>     OPT=""
> else
>     TGT="$1/$MYHOST-BackUp-$TODAY"
>     OPT="--exclude=$1/***"
> fi
> 
> nice -n 19 /bin/rsync -avXA --exclude-from=/etc/skipdirs.rsync $OPT / $TGT
> ---------------------- CUT HERE --------------------------------------
> 
> And the "/etc/skipdirs.rsync" file is:
> 
> ---------------------- CUT HERE --------------------------------------
> /proc/*
> /sys/*
> /dev/*
> /media/**
> /var/log/journal/*
> /BACKUPS/***
> **/.cache/google-chrome/***
> **/.ccache/***
> /run/media/**
> var/lib/docker/*
> ---------------------- CUT HERE --------------------------------------

Thank you for those.

Caches are roughly what I was thinking of but I would not have
thought of nice.. Nice.

Kind regards,
-- 
“One original thought is worth a thousand mindless quotings.”
“Le vrai n'est pas plus sûr que le probable.”

                                              Diogene Laerce

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to