Scripting Tar Incremental Backups

Поділитися
Вставка
  • Опубліковано 30 січ 2025

КОМЕНТАРІ • 12

  • @presidentdwayneelizondomou1986
    @presidentdwayneelizondomou1986 6 років тому

    It's like your reading my mind with these videos.

  • @mareklotocki
    @mareklotocki 6 років тому

    I would like to thank you. Your videos are great and I hope you will continue this.

    • @theurbanpenguin
      @theurbanpenguin  6 років тому +1

      Thank you. I have been on YT since 2009 so I am staying :)

  • @AntonisAsc
    @AntonisAsc 6 років тому +2

    Thank you! Really useful!
    A question. Why we need the older snar file when the new week's back ups will overwrite all the previously created. Is there any use of the old file? Can we just delete it every Monday?

    • @theurbanpenguin
      @theurbanpenguin  6 років тому

      In which case use rm

    • @AntonisAsc
      @AntonisAsc 6 років тому

      theurbanpenguin Is there any use of the old snar file? Or we keep it as a log of the tars history

    • @theurbanpenguin
      @theurbanpenguin  6 років тому

      You can keep the old snar fie. For example is I used last mondays snar file on the following Fridays backup it would archive all files changed since the snar file was last used. Or two weeks worth of changes

  • @14u2ponder
    @14u2ponder 5 років тому

    Using the command date +Week%Uof%b%G would be much better than the option used in the if-statement. It is much more portable since it doesn't rely on gnu esoteric date command. It's also much more readable. The command outputs: week(x)of(month)(year). The key part of the command is that it uses Sunday as the first day of the week. So, those who might wish to use this version would need to change the day of the full backup to Sun instead of Mon. Then you would need to start the script on a day that isn't Sun but preferably Mon and it should work as expected.
    This way you will be able to pinpoint the week of the month easily as well as there should be only 4 to 5 months listed.
    The main reason I made this was because I use openbsd which doesn't have any fancy counters and also I didn't really want to mess with Perl scripts to accomplish something so trivial.

  • @racingtheweb
    @racingtheweb 6 років тому

    Very useful tutorial. What if, let's say, I need to backup my / and my home (full system), how to exclude some directories? Thx in adv.

    • @theurbanpenguin
      @theurbanpenguin  6 років тому

      racingtheweb this is covered in earlier tutorials. Try running through the playlist shown at the end of the video

    • @racingtheweb
      @racingtheweb 6 років тому

      Sry to bother, I watched all your playlist, but, if I'm not mistaken, I couldn't find anything about how to exclude file or directories from tar file; could u please tell me exactly what's the title of your video? thanks

  • @julianpinto6812
    @julianpinto6812 5 років тому

    friend i need to make backups (incremental) dirarias on a remote server, the support people do not offer me any help in this matter. with what you show in the video can I do that? Would there be any risk? I would greatly appreciate your help.