Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
backup configuration?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Dale__
n00b
n00b


Joined: 18 Apr 2015
Posts: 55

PostPosted: Fri May 15, 2015 8:23 pm    Post subject: backup configuration? Reply with quote

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
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Fri May 15, 2015 8:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dale__
n00b
n00b


Joined: 18 Apr 2015
Posts: 55

PostPosted: Sat May 16, 2015 4:35 am    Post subject: Reply with quote

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
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Sat May 16, 2015 5:15 am    Post subject: Reply with quote

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
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Sat May 16, 2015 2:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dale__
n00b
n00b


Joined: 18 Apr 2015
Posts: 55

PostPosted: Sat May 16, 2015 4:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sat May 16, 2015 6:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dale__
n00b
n00b


Joined: 18 Apr 2015
Posts: 55

PostPosted: Sat May 16, 2015 9:44 pm    Post subject: Reply with quote

Thanks, I ordered a 5TB that said it was USB2 compatible and had a seperate power cord
Seagate Expansion ... STEB5000100

(it was only $10-20 more than 4TB, of what I know I'll have to use ext4

I followed
https://wiki.gentoo.org/wiki/Ext4
suggested from
https://wiki.gentoo.org/wiki/A_simple_backup_scheme_using_rsnapshot
above


but it wasn't clear, guess I'll study this
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks
which would indicate the second drive is sdb
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sat May 16, 2015 10:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dale__
n00b
n00b


Joined: 18 Apr 2015
Posts: 55

PostPosted: Wed May 20, 2015 3:00 am    Post subject: Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Wed May 20, 2015 3:06 am    Post subject: Reply with quote

I do not think you need to partition it for a single filesystem. I would not.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Wed May 20, 2015 3:07 am    Post subject: Reply with quote

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
View user's profile Send private message
Dale__
n00b
n00b


Joined: 18 Apr 2015
Posts: 55

PostPosted: Wed May 20, 2015 10:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dale__
n00b
n00b


Joined: 18 Apr 2015
Posts: 55

PostPosted: Fri May 22, 2015 4:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum