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


Groups > linux.debian.user > #270531

Re: Backup.

From eben@gmx.us
Newsgroups linux.debian.user
Subject Re: Backup.
Date 2024-06-28 05:20 +0200
Message-ID <IUajv-67Gc-1@gated-at.bofh.it> (permalink)
References <IU2Fj-62Pv-5@gated-at.bofh.it> <IU3rH-636w-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 6/27/24 15:52, eben@gmx.us wrote:
 > When I boot the file server (possibly today but definitely tomorrow) I'll
 > post my backup script.

OK, it's pretty long so I won't post the whole thing, but the important
lines are

rsyncoptions="--archive --progress --verbose --recursive"

"$rsync" $rsyncoptions --hard-links --link-dest "$previous" "$source" "$current"

I have it create destination dirs like

/backup/2024-01-04_22:26:35/
/backup/2024-01-12_20:21:02/
/backup/2024-01-20_23:19:11/
/backup/2024-01-26_23:04:31/
/backup/2024-02-01_22:13:38/
/backup/2024-02-14_00:12:37/
/backup/2024-03-25_23:52:52/
/backup/2024-05-06_22:47:31/
/backup/2024-05-12_22:08:31/
/backup/2024-06-12_23:39:44/

so $previous and $current are two of those, and $source is /files .

--
"Never go off on tangents, which are lines that intersect a [circle] at
only one point and were discovered by Euclid, who lived in the [4th C
BC], which was an era dominated by the Goths, who lived in what we now
know as Poland." - from the Nov. 1998 issue of _Infosystems Executive_.

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


Thread

Backup. peter@easthope.ca - 2024-06-27 21:10 +0200
  Re: Backup. eben@gmx.us - 2024-06-27 22:00 +0200
    Re: Backup. eben@gmx.us - 2024-06-28 05:20 +0200
    Re: Backup. peter@easthope.ca - 2024-06-30 17:10 +0200
      Re: Backup. eben@gmx.us - 2024-06-30 18:10 +0200
  Re: Backup. Jerome BENOIT <sphericaltriangle@rezozer.net> - 2024-06-27 22:20 +0200
    Re: Backup. peter@easthope.ca - 2024-06-30 16:50 +0200
  Re: Backup. "Thomas Schmitt" <scdbackup@gmx.net> - 2024-06-27 22:50 +0200
    Re: Backup. CHRIS M <CHRIS@CWM030.COM> - 2024-06-27 23:00 +0200
    Re: Backup. peter@easthope.ca - 2024-06-28 20:00 +0200
      Re: Backup. "Thomas Schmitt" <scdbackup@gmx.net> - 2024-06-28 23:40 +0200
        Re: Backup. peter@easthope.ca - 2024-06-30 15:40 +0200
          Re: Backup. "Thomas Schmitt" <scdbackup@gmx.net> - 2024-07-02 14:20 +0200
    Re: Backup. peter@easthope.ca - 2025-04-06 16:20 +0200
  Re: Backup. peter@easthope.ca - 2024-06-30 16:00 +0200
    Re: Backup. Michael Kjörling <c9bc136c6063@ewoof.net> - 2024-06-30 16:10 +0200
    Re: Backup. Andy Smith <andy@strugglers.net> - 2024-06-30 16:30 +0200
      Re: Backup. <tomas@tuxteam.de> - 2024-06-30 16:40 +0200
      Re: Backup peter@easthope.ca - 2024-06-30 17:40 +0200
        Re: Backup Andy Smith <andy@strugglers.net> - 2024-06-30 17:50 +0200
    Re: Backup. Anssi Saari <anssi.saari@debian-user.mail.kapsi.fi> - 2024-06-30 17:30 +0200

csiph-web