User Tools

Site Tools


backup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
backup [2021/03/20 16:10]
dwheele
backup [2022/02/08 18:01] (current)
dwheele
Line 1: Line 1:
 ====== Backup Scheme ====== ====== Backup Scheme ======
 +
 +^Linux Drive^Partition^Usage^
 +|/dev/sda|sda1|unknown|
 +|/dev/sdb|sdb1|Linux OS|
 +|/dev/sdc|sdc1|/var/nas|
 +|/dev/sdd|sdd1|/var/archive (750Gb Hard Drive)|
  
 Backups are done from my main PC (and possibly other places) to ''/var/nas/backup''. Periodically, this is copied to an offsite backup drive, which is mounted: Backups are done from my main PC (and possibly other places) to ''/var/nas/backup''. Periodically, this is copied to an offsite backup drive, which is mounted:
Line 9: Line 15:
 There is also **archive** content at /var/archive, which is sole copies of things that are only nice-to-have. They aren't backup up to offsite because it is not vital that these be retained. There is also **archive** content at /var/archive, which is sole copies of things that are only nice-to-have. They aren't backup up to offsite because it is not vital that these be retained.
  
-Then we rsync like this:+Then we rsync like this, available as rsyncToOffsiteMedia in /home/dwheele on Joshua (it won't run from /var/nas because execute is not included in /etc/fstab):
  
 <code bash> <code bash>
 #!/bin/bash #!/bin/bash
-rsync -a /var/nas/backup /mnt/offsitebackup/backup +rsync -a /var/nas/backup/mnt/offsitebackup/backup
 </code> </code>
 +
 +Note the source directory has a trailing slash. This means to copy the contents of this directory, and to not create a backup directory inside of the source directory.
 +
 +
 +To disconnect:
 +
 <code bash> <code bash>
 sudo umount /dev/sdd1 sudo umount /dev/sdd1
backup.1616256652.txt.gz · Last modified: 2021/03/20 16:10 by dwheele