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


Groups > linux.debian.user > #270522

Re: Backup.

From Jerome BENOIT <sphericaltriangle@rezozer.net>
Newsgroups linux.debian.user
Subject Re: Backup.
Date 2024-06-27 22:20 +0200
Message-ID <IU3L3-63sy-1@gated-at.bofh.it> (permalink)
References <IU2Fj-62Pv-5@gated-at.bofh.it>
Organization Round Sphere

Show all headers | View raw


Hello,
why did you not use something as backup2l ?
Best wishes,
Jerome


On 27/06/2024 20:23, peter@easthope.ca wrote:
> Hi,
> 
> My working data is in a directory we can refer to as A. A is on a
> removable flash store.  "du -hs /home/me/A" reports 3.0G.  I want a
> reliable backup of most files A/*.
> 
> I created a directory "Backup" on the HDD and apply this shell
> function whenever motivated.
> 
> Backup() { \
>    if [ $# -gt 1 ]; then
>      echo "Too many arguments.";
>    else
>      echo "0 or 1 arguments are OK.";
>      source="/home/me/A/*";
>      echo "source is $source.";
>      if [ $# -eq 0 ]; then
>        echo "0 arguments is OK.";
>        destination=/home/me/Backup;
>        echo "destination is $destination.";
>      else
>        echo "1 argument is OK.";
>        destination=/home/me/$1;
>        echo "destination is $destination.";
>      fi;
>        echo "Executing sync and rsync.";
>        sync;
>        rsync \
>        --exclude='Trap*' \
>        --exclude='*.mp3' \
>        --exclude='*.mp4' \
>        -auv $source $destination ;
>       /bin/ls -ld $destination/MailMessages;
>       printf "du -hs $destination => ";
>       du -hs $destination;
>    fi;
> }
> 
> When the flash store fails, work since the last execution of Backup
> can be lost.
> 
> In case the Backup directory on the HDD is lost or I want to see an
> old file not current in A, I want backups of Backup.  This function is
> applied every week or two to write to a DVD.
> 
> FilesToDVD () { \
>    printf "Insert open or new DVD-R.";
>    read t;
>    startPath=$PWD;
>    echo "startPath is $startPath";
>    source=/home/me/Backup;
>    echo "source is $source";
>    cd $source;
>    xorriso -for_backup -dev /dev/sr0 \
>            -update_r . / \
>            -commit \
>            -toc -check_md5 failure -- \
>            -eject all ;
>    cd $startPath ;
>    echo "  xorriso -dev /dev/sr0 -toc            ";
>    echo "  mount -o sbsector=nnnnnn  /dev/sr0 /mnt/iso            "; }
>    
> Finding a file as it existed months or years ago can be tedious.  For
> example, find A/MailMessages as it was at 2023.02.07.  Otherwise the
> backup system works well.
> 
> Now I have a pair of 500 GB external USB drives.  Large compared to my
> working data of ~3 GB.  Please suggest improvements to my backup
> system by exploiting these drives.  I can imagine a complete copy of A
> onto an external drive for each backup; but with most files in A not
> changing during the backup interval, that is inefficient.
> 
> Thanks,            ... Peter E.
> 

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