Abarbarian
Acruncher
- Joined
- Sep 30, 2005
- Messages
- 11,023
- Reaction score
- 1,223
I'm using a script that uses "rysnc" on me Arch install,
which excludes these,
which I run with this alias,
Backs up all me important stuff pretty quickly.
I do a full disc clone with Clonezilla every now and again just in case I need to reinstall Arch sometime.
If your os uses systemd then there are some neat things you can do, which I have not tried out yet but are detailed in the Arch Wiki and should be applicable for most penguinistas.
https://wiki.archlinux.org/index.php/Rsync
https://wiki.archlinux.org/index.php/Full_System_Backup_with_rsync
I do not back up Windows 7 as it is running in RAID O an I have not found a free program which will allow me to clone the setup. I guess I should at least do a backup of me Steam folder.
Maybe I will now that winter is just around the corner.
Code:
#!/bin/sh
[LEFT]if [ $# -lt 1 ]; then [/LEFT]
[LEFT] echo "No destination defined. Usage: $0 destination" >&2[/LEFT]
[LEFT] exit 1[/LEFT]
[LEFT]elif [ $# -gt 1 ]; then[/LEFT]
[LEFT] echo "Too many arguments. Usage: $0 destination" >&2[/LEFT]
[LEFT] exit 1[/LEFT]
[LEFT]fi[/LEFT]
[LEFT]START=$(date +%s)[/LEFT]
[LEFT]rsync -aAXv --exclude-from=/usr/local/sbin/exclude.txt /* /media/sdf2-ata-SAMSUNG_HD103SJ_/Archphew/ [/LEFT]
[LEFT]FINISH=$(date +%s)[/LEFT]
[LEFT]echo "total time: $(( ($FINISH-$START) / 60 )) minutes, $(( [/LEFT]
[LEFT]($FINISH-$START) % 60 )) seconds"[/LEFT]
[LEFT]touch /media/sdf2-ata-SAMSUNG_HD103SJ_/Archphew/"Backup from $(date '+%A, %d %B %Y, %T')"[/LEFT]
which excludes these,
/dev/*
/proc/*/sys/*/tmp/*/run/*/mnt/*/media/*/lost+found/home/*/.gvfs/var/lib/pacman/sync/*/home/*/.thumbnails/*/home/*/.cache/chromium/*/home/*/.mozilla/firefox/*.default/Cache/*/home/*/dwhelper/*/home/*/Downloads/*
which I run with this alias,
#alias phew="/home/b***********/Scripts/phew.sh /media/sdf2-ata-SAMSUNG_HD103SJ_/Archphew/"
Backs up all me important stuff pretty quickly.
I do a full disc clone with Clonezilla every now and again just in case I need to reinstall Arch sometime.
If your os uses systemd then there are some neat things you can do, which I have not tried out yet but are detailed in the Arch Wiki and should be applicable for most penguinistas.
https://wiki.archlinux.org/index.php/Rsync
https://wiki.archlinux.org/index.php/Full_System_Backup_with_rsync
I do not back up Windows 7 as it is running in RAID O an I have not found a free program which will allow me to clone the setup. I guess I should at least do a backup of me Steam folder.
Maybe I will now that winter is just around the corner.
Last edited: