View previous topic :: View next topic |
Author |
Message |
Dale__ n00b
Joined: 18 Apr 2015 Posts: 55
|
Posted: Fri May 15, 2015 8:23 pm Post subject: backup configuration? |
|
|
ideally, I'd like to burn a DVD/CD as a regular backup that would "rescue" my system as well as my "home" stuff
but, I'll take any suggestions |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Fri May 15, 2015 8:32 pm Post subject: |
|
|
The system rescue CD is already a rescue environment and you can simply put it on a usb. Other than that, I would use rsnapshot to an external drive or other secure location in case a restore is needed.
In my experience, any backup system that requires a user to do something is fundamentally flawed as you will forget to do it just after a critical update and before the system self destructs. _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
Dale__ n00b
Joined: 18 Apr 2015 Posts: 55
|
Posted: Sat May 16, 2015 4:35 am Post subject: |
|
|
thanks,
I have a 320G hard drive partitioned according to AMD64 Handbook guide
I'm using about 5% of my disk
if I do all the daily/weekly/monthly backups, I need to get around 10 times what I got
I think I have enough on my rootfs
how can I split out a 50% partition of my rootfs? |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Sat May 16, 2015 5:15 am Post subject: |
|
|
Dale__ wrote: | thanks,
I have a 320G hard drive partitioned according to AMD64 Handbook guide
I'm using about 5% of my disk
if I do all the daily/weekly/monthly backups, I need to get around 10 times what I got
I think I have enough on my rootfs
how can I split out a 50% partition of my rootfs? |
Not really a size problem. rsnapshot uses hardlinks to save space and cleans up after itself so if you use a 1-2TB external drive you shouldn't have any space issues and they are fairly cheap if you shop around. You can also scale the length of time you want to keep the backups according to the size of the drive. If you want to keep them permanently then use tape.
Also, putting your backups on the same disk as your main system is a really bad idea. If that disk fails you loose everything. That is really the most likely way to loose your data since a bad update is fixable. _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Sat May 16, 2015 2:04 pm Post subject: |
|
|
There's not much point to a backup on the same hard disk, though it does insure against finger trouble.
I'd back up /etc and /home to another drive (a portable USB drive?), and if I were on a slow network
the contents of /usr/portage/distfiles. That way a rebuild is pretty straightforward.
Will |
|
Back to top |
|
|
Dale__ n00b
Joined: 18 Apr 2015 Posts: 55
|
Posted: Sat May 16, 2015 4:21 pm Post subject: |
|
|
thanks for both replies
I looked on newegg, amazon and bestbuy, I don't see a USB2 drive, they are USB3
any suggestions for a USB2 one? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Sat May 16, 2015 6:05 pm Post subject: |
|
|
Dale__,
USB3 is backwards compatible with USB2 with one exception.
USB3 can provide 900mA to all connected devices and USB2 only 500mA.
A USB3 drive with its own power supply will be fine. (i.e. Not a bus powered device)
Bus powered USB2 HDD were always a bit iffy and were to be avoided.
You will only get USB2 speeds until you upgrade the other end of the USB link. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Dale__ n00b
Joined: 18 Apr 2015 Posts: 55
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Sat May 16, 2015 10:00 pm Post subject: |
|
|
Dale__,
That will do nicely.
You will need to use a GPT disk label as an MSDOS disk label can only describe 2^32 blocks or 2TiB.
You can use whatever fs you want. vfat would be a bad choice. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Dale__ n00b
Joined: 18 Apr 2015 Posts: 55
|
Posted: Wed May 20, 2015 3:00 am Post subject: |
|
|
Thanks so far, I'm getting my disk tommorow, this is what I am going to do
Code: |
root # parted -a optimal /dev/sdb
(parted) mklabel gpt
(parted) print
(parted) rm any existing partitions
(parted) unit mib
(parted) mkpart primary 1 -1
(parted) name 1 backup
(parted) print
(parted) quit
root # mkfs.ext4 /dev/sdb1
|
since I only have one other drive, sda, will the USB be sdb? |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Wed May 20, 2015 3:07 am Post subject: |
|
|
Probably, but don't count on it. Those kinds of assumptions lead to embarrassment and data loss. I would do an ls /dev/sd* before and after you plug in the new drive. It will be whatever the new disk is.
Messing with filesystems and partitions is one of those things to be done very slowly and carefully. _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
Dale__ n00b
Joined: 18 Apr 2015 Posts: 55
|
Posted: Wed May 20, 2015 10:17 pm Post subject: |
|
|
Thanks, it comes up in KDE with a prompt to open it with the file manager (dolphin), it opens on
/run/media/dale/Seagate Expansion Drive (note spaces in name)
when I run dmesg below, it looks like it is on sdg, with two ntfs partitions, sdg1 and sdg2
I can't tell what size each partitions are, and I don't see two partitions in the file manager (dolphin)
my main hard drive is 320GB and if I back it up every night, I need a parition around half of 5TB
will this work with https://wiki.gentoo.org/wiki/A_simple_backup_scheme_using_rsnapshot ?
Code: |
dmesg | less
...
...
[157649.831829] usb 1-1: Product: Expansion Desk
[157649.831833] usb 1-1: Manufacturer: Seagate
[157649.831836] usb 1-1: SerialNumber: NA8E6L7X
[157649.832283] usb-storage 1-1:1.0: USB Mass Storage device detected
[157649.832409] scsi host6: usb-storage 1-1:1.0
[157649.920014] usb 1-1: USB disconnect, device number 6
[157686.130044] usb 1-1: new high-speed USB device number 7 using ehci-pci
[157686.281799] usb 1-1: New USB device found, idVendor=0bc2, idProduct=3322
[157686.281806] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[157686.281810] usb 1-1: Product: Expansion Desk
[157686.281813] usb 1-1: Manufacturer: Seagate
[157686.281817] usb 1-1: SerialNumber: NA8E6L7X
[157686.282232] usb-storage 1-1:1.0: USB Mass Storage device detected
[157686.282796] scsi host7: usb-storage 1-1:1.0
[157687.280967] scsi 7:0:0:0: Direct-Access Seagate Expansion Desk 9401 PQ: 0 ANSI: 6
[157687.281618] sd 7:0:0:0: Attached scsi generic sg7 type 0
[157687.285435] sd 7:0:0:0: [sdg] Spinning up disk...
[157688.290022] .................ready
[157704.460626] sd 7:0:0:0: [sdg] Very big device. Trying to use READ CAPACITY(16).
[157704.461005] sd 7:0:0:0: [sdg] 9767541167 512-byte logical blocks: (5.00 TB/4.54 TiB)
[157704.926794] sd 7:0:0:0: [sdg] Write Protect is off
[157704.926801] sd 7:0:0:0: [sdg] Mode Sense: 4f 00 00 00
[157704.927895] sd 7:0:0:0: [sdg] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[157704.929160] sd 7:0:0:0: [sdg] Very big device. Trying to use READ CAPACITY(16).
[157705.941870] sdg: sdg1 sdg2
[157705.944862] sd 7:0:0:0: [sdg] Very big device. Trying to use READ CAPACITY(16).
[157705.947191] sd 7:0:0:0: [sdg] Attached SCSI disk
[157719.976567] ntfs: driver 2.1.31 [Flags: R/O MODULE].
[157720.158911] ntfs: volume version 3.1.
|
|
|
Back to top |
|
|
Dale__ n00b
Joined: 18 Apr 2015 Posts: 55
|
Posted: Fri May 22, 2015 4:20 pm Post subject: |
|
|
Found the following link
https://forums.gentoo.org/viewtopic-t-725408-view-previous.html?sid=2527880ba4b37f6fca14f9a8986f57de
can I just have a /etc/rsnapshot.conf as follows
Code: |
backup / localhost/
exclude /run/media/dale/Seagate Expansion Drive/
|
and run rsnapshot manually telling it to use the Seagate Expansion Drive for backup?
also can I run ranspshot from within KDE in a teminal?
as above it looks like the case is combining sdg1,sdg2 into "Seagate Expansion Drive" , will this show up outside of KDE? do I have to be root? |
|
Back to top |
|
|
|