Difference between revisions of "NUC Backup"
From wikidb
(→Backup) |
(→Duplicity) |
||
Line 100: | Line 100: | ||
=== Duplicity === | === Duplicity === | ||
+ | |||
+ | * Ran it from the Accessories menu | ||
+ | * Set storage location to "/media/backup" | ||
+ | * Set Scheduling to "Day" |
Revision as of 23:12, 21 June 2015
Create the Backup Disk
Determine what disk are currently on the system. The Icy Dock disk is ext2 so it will be re-partitioned and formated
mount
or
sudo parted -l sudo parted /dev/sdbeepp@rainier:~$ sudo parted /dev/sdb GNU Parted 2.3 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) mklabel gpt Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue? Yes/No? Yes (parted) print Model: WDC WD50 01AALS-00L3B2 (scsi) Disk /dev/sdb: 500GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags (parted) unit s (parted) mkpart primary 1M -1M (parted) quit Information: You may need to update /etc/fstab. eepp@rainier:~$ sudo mkfs.ext4 /dev/sdb1 mke2fs 1.42.9 (4-Feb-2014) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 30531584 inodes, 122096384 blocks 6104819 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=4294967296 3727 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 102400000 Allocating group tables: done Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done eepp@rainier:~$ sudo tune2fs -r 0 /dev/sdb1 eepp@rainier:~$ sudo parted -l Model: ATA INTEL SSDMCEAW24 (scsi) Disk /dev/sda: 240GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 1049kB 538MB 537MB fat32 boot 2 538MB 232GB 231GB ext4 3 232GB 240GB 8513MB linux-swap(v1) Model: WDC WD50 01AALS-00L3B2 (scsi) Disk /dev/sdb: 500GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 1049kB 500GB 500GB ext4 primary eepp@rainier:~$ sudo mkdir /media/backup eepp@rainier:~$ sudo mount /dev/sdb1 /media/backup/
Mount at Boot
sudo mkdir /media/backup sudo chmod 777 /media # these were 755 sudo chmod 777 /media/backup
epp@rainier:/media/backup$ diff /etc/fstab /etc/fstab.org 14,19d13 < # < # backup < # < # UUID=0c9f950a-f453-4993-b2c0-da69b5d3da1d /media/backup ext4 user,fmask=0111,dmask=0000 0 0 < /dev/sdb1 /media/backup ext4 defaults,errors=remount-ro,noatime 0 0 <
See Asus_702_Eee_PC_ubuntu#Mount_.2Fusr
Backup
Duplicity
- Ran it from the Accessories menu
- Set storage location to "/media/backup"
- Set Scheduling to "Day"