Can you please share your backup strategies for linux? I’m curious to know what tools you use and why?How do you automate/schedule backups? Which files/folders you back up? What is your prefered hardware/cloud storage and how do you manage storage space?

    • lud@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

      Do you also backup the files externally? If not you shouldn’t consider them backed up.

      • fireshell
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        16 hours ago

        I do it externally with this script

        #!/bin/bash
        # Sample file backup-documents.sh
        cd ${HOME}/documents
        tar -cJpf /run/media/fireshell/EAGET/mybackups/documents-$(date '+%Y-%m-%d').tar.xz .
        sync
        
        #!/bin/bash
        # Sample file restore-documents.sh
        backup_dir="/run/media/fireshell/EAGET/mybackups/"
        mkdir -p ~/documents
        last_documents="$(ls -1t ${backup_dir}/documents-*.tar.xz | head -n1)"
        cd ~/documents && \
          tar -xpf ${last_documents}