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


Groups > linux.debian.user > #247354

Re: backing up backups

From Keith Bainbridge <keithrboz@gmail.com>
Newsgroups linux.debian.user
Subject Re: backing up backups
Date 2022-04-19 06:00 +0200
Message-ID <EdNbX-9Hsk-1@gated-at.bofh.it> (permalink)
References <EaSrv-7VN6-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 11/4/22 10:58, Default User wrote:
> 
> So . . .   what IS the correct way to make "backups of backups"?
> 

Sorry to take so long to respond. I am traveling and have only short 
periods that I can spend on non-pressing matters.

To answer your question: the method that gets you the result you want.

I have used 2 switches in rsync to create  a date/time copy of files 
that are updated:


--backup-dir=/mnt/data/rsynccBackupp/$YEAR/$MON/$TODAY/$HOUR/  source/ 
target

creates an archive directory of older versions of files. I have noticed 
at times that it creates copies of files that I haven't fouched. Needs 
looking at, but it will something I'm doing.

The variables are set in the script:


YEAR=`date +%Y`
MON=`date +%b`
TODAY=`date +%d`
NOW=`date +%Y%b%d%H`
HOUR=`date +%H`

rsync -avbH  --suffix="."$(date +"%Y%m%d%H%M")    source/ target/

replaces the standard ~ at the end of the file being updated with 
current time, in a numerical string. Keeps all versions of the files 
together.  Which suits you better.

As for how to 'backup your backup?'   I copy everything from source 
documents to my backup drives, and set cron to run the script for each 
drive at a different time of day/hour - yes I backup current docs 
hourly. I'm lucky - I don't notice rsync affecting my performance.

Timeshift is a great tool. I know you are correct to copy the system to 
a different drive. I figure that if I get to a point where I can't 
access the time shift files on /timeshift I'm in deep trouble.  I just 
re-install.  / has only system files on it. /home/keith is sym-linked 
from another partition.

In any case, copying /timeshift  from your system OR your first backup 
drive should be trivial for rsync.

Out of time, but I think that's enough to think about for now

-- 
All the best

Keith Bainbridge

keithrbaugroups@gmail.com

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


Thread

backing up backups Default User <hunguponcontent@gmail.com> - 2022-04-11 05:00 +0200
  Re: backing up backups David <bouncingcats@gmail.com> - 2022-04-11 05:20 +0200
    Re: backing up backups Default User <hunguponcontent@gmail.com> - 2022-04-11 06:00 +0200
  Re: backing up backups David Christensen <dpchrist@holgerdanske.com> - 2022-04-11 06:50 +0200
    Re: backing up backups <tomas@tuxteam.de> - 2022-04-11 07:20 +0200
      Re: backing up backups David Christensen <dpchrist@holgerdanske.com> - 2022-04-11 18:10 +0200
        Re: backing up backups Default User <hunguponcontent@gmail.com> - 2022-04-13 18:30 +0200
          Re: backing up backups David Christensen <dpchrist@holgerdanske.com> - 2022-04-13 22:50 +0200
            Re: backing up backups Default User <hunguponcontent@gmail.com> - 2022-04-14 05:10 +0200
              Re: backing up backups David Christensen <dpchrist@holgerdanske.com> - 2022-04-14 09:30 +0200
                Re: backing up backups Default User <hunguponcontent@gmail.com> - 2022-04-18 22:10 +0200
                Re: backing up backups David Christensen <dpchrist@holgerdanske.com> - 2022-04-19 00:50 +0200
                Re: backing up backups David Wright <deblis@lionunicorn.co.uk> - 2022-04-21 23:00 +0200
  Re: backing up backups Keith Bainbridge <keithrboz@gmail.com> - 2022-04-19 06:00 +0200
  Re: backing up backups David Wright <deblis@lionunicorn.co.uk> - 2022-04-19 18:10 +0200

csiph-web