Backup/System Restore

New to Debian (Or Linux in general)? Ask your questions here!

Backup/System Restore

Postby millpond » 2019-01-17 22:49

I've noticed that there are many utils for backup, with 'snapshots' in the newer releases.

What I am looking for is something like the traditional system back and restore for Win, but with Buster/Sid.

I want to be able to apply updates, and if they dont work, roll them back.

I would prefer the files for this to be kept on an NTFS drive, so preferably something in a tar or tgz file.

Any recommendations with easy to follow instructions????

(I've done rsync in the past, but it made a mess of things!)
millpond
 
Posts: 653
Joined: 2014-06-25 04:56

Re: Backup/System Restore

Postby Head_on_a_Stick » 2019-01-18 05:31

User avatar
Head_on_a_Stick
 
Posts: 10342
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Backup/System Restore

Postby barlafuss » 2019-01-18 16:06

Whuau!! Very interesting. Follow.
Thanks
barlafuss
 
Posts: 10
Joined: 2007-11-11 17:49
Location: Milan

Re: Backup/System Restore

Postby millpond » 2019-01-18 16:26

Head_on_a_Stick wrote:https://packages.debian.org/stretch/snapper


https://www.thegeekstuff.com/2014/03/snapper-command/

It might as well be written in Ukrainian cyrillic.

Gives no clue as to size of files, or the percentage of space required.
No gui either.

I could probably script this if there was a better faq on this - and i would certainly want to avoid anything PAM related to a backup.

Not my first choice (I did wipe it from the system) but will try if its the ONLY option for this....
millpond
 
Posts: 653
Joined: 2014-06-25 04:56

Re: Backup/System Restore

Postby Segfault » 2019-01-18 16:45

My personal approach is completely different. Back up user files, databases and system configuration. These are enough to restore a system in case it is completely lost due to some disaster like hard drive failure. Backing up the whole system is slow, produces huge files, there is no thrill in it, either. :wink:
Segfault
 
Posts: 895
Joined: 2005-09-24 12:24

Re: Backup/System Restore

Postby Head_on_a_Stick » 2019-01-18 16:47

millpond wrote:if there was a better faq

Is your search engine as broken as the rest of your system?

https://en.opensuse.org/openSUSE:Snapper_Tutorial
User avatar
Head_on_a_Stick
 
Posts: 10342
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Backup/System Restore

Postby Ardouos » 2019-01-18 19:15

Don't you need to use brtfs for snapper? Or can other file systems use it?

Edit:
Nvm, got my answer here:

Does snapper support ext4?

Yes, but only experimentally and you need a special kernel and e2fsprogs. For more information see the next4 project.


Source: http://snapper.io/faq.html
User avatar
Ardouos
 
Posts: 1049
Joined: 2013-11-03 00:30
Location: Elicoor II

Re: Backup/System Restore

Postby Segfault » 2019-01-18 20:27

rsnapshot works on any filesystem and uses hard links, no multiple copies of same files.
Segfault
 
Posts: 895
Joined: 2005-09-24 12:24

Re: Backup/System Restore

Postby llivv » 2019-01-19 00:37

e2image
if it fits in your taste..
if not no need to commet further with regards to it for my benifit..
Unless you like that kinda thing....
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.
User avatar
llivv
 
Posts: 5488
Joined: 2007-02-14 18:10
Location: cold storage

Re: Backup/System Restore

Postby millpond » 2019-01-19 08:22

Head_on_a_Stick wrote:
millpond wrote:if there was a better faq

Is your search engine as broken as the rest of your system?

https://en.opensuse.org/openSUSE:Snapper_Tutorial


1. Thank you for your recommendation. It showed me that snapper was totally useless for my needs. As to DDG, well, sometimes its not up to par, by missing a few links. Alot like my system, but its working fine for my needs, thus the need to back it up before implementing fixes. Though I cannot but help remember my old boss who told me when I asked him if it was alright to remove an inch of dust from the circuitry of a 5kw transmitter: "If it aint broke, dont fix it".

2. Now for my recommendation: Alka-seltzer - for your obvious dyspepsia.
millpond
 
Posts: 653
Joined: 2014-06-25 04:56

Re: Backup/System Restore

Postby millpond » 2019-01-19 08:24

Segfault wrote:rsnapshot works on any filesystem and uses hard links, no multiple copies of same files.


rsnapshot seems to be based on rsync, burt I believe it will get permissions futzed up on an NTFS system.
millpond
 
Posts: 653
Joined: 2014-06-25 04:56

Re: Backup/System Restore

Postby millpond » 2019-01-19 08:38

llivv wrote:e2image
if it fits in your taste..
if not no need to commet further with regards to it for my benifit..
Unless you like that kinda thing....


Indeed: Thank you.
https://superuser.com/questions/641903/ ... m-metadata

Looks interesting.
But confusing. Metadata vs new -a option. I have the qemu utils so that is not a problem. Examples given seem helpful, just need to know the how, what.whys of it, and what a metadata backup is!

I may need to script something that dumps tgz of main dirs, thoguh only pieces of lib and usr. Need to figure out the most volatile to save. Not perl or python, for example - too big and too easily replaced. So, are most of of the file dirs,as techically I can pull replacements directly from my archives. Up to date suggestions greatly appreciated. Google grows useless by the day, since 90% of everything appears for ubuntu. Great from my mint system, but thats a bit boring.It works.

Compiled to see if it works - fine . Just to recompile it into a deb package before install
millpond
 
Posts: 653
Joined: 2014-06-25 04:56

Re: Backup/System Restore

Postby Segfault » 2019-01-19 12:19

millpond wrote:
Segfault wrote:rsnapshot works on any filesystem and uses hard links, no multiple copies of same files.


rsnapshot seems to be based on rsync, burt I believe it will get permissions futzed up on an NTFS system.


NTFS I do not consider a usable filesystem, never crossed my mind one might count it in. There are other exotic closed source filesystems I didn't consider. These are Linux forums.

BTW, just checked, I have a user here, home directory backup is 11 GB. Four backups are 12 GB in total, thanks to hard links.
Segfault
 
Posts: 895
Joined: 2005-09-24 12:24

Re: Backup/System Restore

Postby llivv » 2019-01-19 13:48

I don't know what ntfs would do to a qcow2 archive, I might think probably nothing.
than again probably something is more likely....
who knows .....
who cares.....
poor me.....
cest la vie .......
default is ext4
even if most of my partitions are xfs.
they are both turning into zfs clones with growing pains
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.
User avatar
llivv
 
Posts: 5488
Joined: 2007-02-14 18:10
Location: cold storage

Re: Backup/System Restore

Postby CwF » 2019-01-22 00:57

llivv wrote:I don't know what ntfs would do to a qcow2 archive, I might think probably nothing.

I *think* I have done this. I've carried with me a qcow image on a usb Fat32 and ntfs. A remote location situation.
CwF
 
Posts: 388
Joined: 2018-06-20 15:16

Next

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable