How To Create a Backup Script?

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

КОМЕНТАРІ • 20

  • @bugx
    @bugx  6 місяців тому +1

    Guys, I have created advanced version of backup script which includes logging, error handling, email notifications and backup rotation. You can watch it here : ua-cam.com/video/oAYEWFNqqWw/v-deo.html&ab_channel=BugX

  • @tutacat
    @tutacat 5 місяців тому

    Use something like pika backup or timeshift. it is easy to use, transfer, copy to other drive (on one device is not backup). plus, updated software by community is less likely to have bugs, and easier to use.

  • @kenkkash
    @kenkkash 10 місяців тому +2

    Thanks for sharing 👍

  • @dollypawar3896
    @dollypawar3896 4 місяці тому

    Your vedio ia very helpful 😊

    • @bugx
      @bugx  4 місяці тому

      Nice to hear that 🙂

  • @СергейЯкушев-ъ3д
    @СергейЯкушев-ъ3д 6 місяців тому

    Thanks a lot, very comprehensive

  • @logicvibes900
    @logicvibes900 10 місяців тому

    If you want to put the backup results in the folder we want, how do you do it?

    • @bugx
      @bugx  10 місяців тому +2

      You just need to assign absolute path of that directory to BACKUP_DST variable in the script

  • @brandon_wallace
    @brandon_wallace 7 місяців тому

    Do you backup the home directory using this method? How big are your tar.gz files?

    • @bugx
      @bugx  7 місяців тому +1

      No, I don’t. This is just simple backup script to show how things work under the hood. So it is just one of many methods. However, when doing backups it is also important to have some retention logic i.e deleting older backups to save the space

  • @kimitc9807
    @kimitc9807 7 місяців тому

    Really good Tutorial , thx m8.

  • @olafgusten2671
    @olafgusten2671 6 місяців тому

    great tutorial indeed 👍🏼

  • @vinzanity68
    @vinzanity68 10 місяців тому

    Great tutorial. But in case of a hacked website, is there a script to install the backup that was made?

    • @bugx
      @bugx  10 місяців тому

      Could you pls elaborate a bit? I didn't fully catch what you want to do? How website is hacked? If website was running in a webserver in a VM and if VM itself is not affected then you can log in VM and see your backups

    • @vinzanity68
      @vinzanity68 10 місяців тому

      @@bugx i want to upload the backup into website. Manually this is done via unzip...etc...how can we put this in a script?

  • @musababdulmalek8949
    @musababdulmalek8949 9 місяців тому

    Why my backup file not automate:

    • @yoishikakatshihe6402
      @yoishikakatshihe6402 9 місяців тому

      Did you use Contrab -e to automize it at a certain timer ?