Backup
rsync and its GUIs programs
How to Back Up Your Linux System
13 open source backup solutions
13 open source backup solutions
- 6 tools: Cronopete, Deja Dup, Rclone, Rdiff-backup, Restic, and Rsync.
- 13 tools: BorgBackup, UrBackup, LuckyBackup, Casync, Syncthing, Duplicati, Dirvish, Bacula, BackupPC, Amanda, Back in Time, Timeshift, Kup.
rdiff-backup
rdiff-backup. See
- Turn your old Raspberry Pi into an automatic backup server
- rdiff-backup – A Remote Incremental Backup Tool for Linux
Dropbox
If we don't want to install dropbox software, we can install bash dropbox uploader: http://www.andreafabrizi.it/?dropbox_uploader OR https://github.com/andreafabrizi/Dropbox-Uploader
It allows to upload/download/delete/list files and show info of user. The version I am using is v0.9.7. It works on linux, Windows/Cygwin, Raspberry Pi, etc.
I install it under ~/Downloads/andreafabrizi-Dropbox-Uploader-cdc2466 directory
Instruction with screenshots: http://www.jobnix.in/dropbox-command-line-interface-cli-client/
Sample usages:
./dropbox_uploader.sh list / ./dropbox_uploader.sh upload ~/Desktop/ConfigurateNote.txt
Clone
4 Methods To Clone Your Linux Hard Drive
- dd can clone an entire HDD or disk partition
- Partimage. partimage does not support the ext4 filesystem
- Partclone
- Clonezilla
back up DVDs
See Create an iso file from a DVD/CD
back up a remote drive using SSH and save the resulting archive to your local machine
# ssh [email protected] "dd if=/dev/sda | gzip -1 -" | dd of=backup.gz
where "-1" (one) indicates the fastest compression method and the dash means ‘standard input’.
Backups vs. Archives
How to Archive Your Data (Virtually) Forever
Delete files or directories older than XXX days
Suppose we have a cron job to run backup and that creates a lot of directories. We like to erase them to avoid our system running out of space. You can run a space-checking program that'll alert you when the filesystem is low on free space. In addition we can run a cron job that uses find to erase all files.
cp -p -r ~/Downloads/SomeOldDirectory /tmp/ ls -lt /tmp # List only # Older than 2 days. Note the plus sign after "-mtime". # Quotes in "{}" is to deal with names with spaces find /tmp -type d -mtime +2 -exec ls -ld "{}" + find /tmp -type d -mtime +2 -exec rm -rf "{}" + # Or if we don't mind some extra warning messages # find /tmp -type d -mtime +2 -exec rm -rf "{}" \; ls -lt /tmp
See
- How to find and delete directory recursively on Linux or Unix-like system
- How to delete all files before a certain date in Linux
- Avoding server disaster
Timeshift
Vorta (BorgBackup GUI)
- Securely And Efficiently Backup Data On Linux Or macOS With Vorta (BorgBackup GUI), Vorta BorgBackup GUI Now Available For Install On Linux From Flathub
- BorgBackup
- Vorta
CloudBerry
CloudBerry Backup Protects Files on Windows, Mac, and Linux
Github, Bitbucket, Gitlab
We can use these git services to get real-time data (eg temperature, IP, etc).