You are not logged in.

#1 2013-01-20 13:27:36

tritonas00
Member
Registered: 2013-01-20
Posts: 71

System tar & restore

Hi !

We are working on this project and we would like to share it with the community.

System tar & restore contains two bash scripts, star.sh and star-gui.sh

The purpose is to make the process of backing up and restoring a full GNU/Linux installation easier using tar or transfer an existing installation using rsync.

-GUI and CLI interfaces
-Creates .tar.gz, .tar.bz2, .tar.xz or .tar archives
-Supports openssl / gpg encryption
-Uses rsync to transfer a running system
-Supports Grub2, Syslinux, EFISTUB/efibootmgr and Systemd/bootctl

Documentation
Stable Releases
Changelog

Last edited by tritonas00 (2016-12-18 19:30:57)

Offline

#2 2013-01-23 14:12:51

tritonas00
Member
Registered: 2013-01-20
Posts: 71

Re: System tar & restore

package --> https://aur.archlinux.org/packages/syst … d-restore/    smile

Try it in vbox, a second hard disk or a usb flash drive.

Offline

#3 2013-01-24 18:58:11

tobias_
Member
Registered: 2012-09-01
Posts: 25

Re: System tar & restore

This looks handy! I will definitely try this for my root backup.

Offline

#4 2013-02-01 09:24:56

pmav99
Member
Registered: 2007-12-20
Posts: 5

Re: System tar & restore

nice!

Offline

#5 2013-02-18 21:28:24

tritonas00
Member
Registered: 2013-01-20
Posts: 71

Re: System tar & restore

Demo--> http://www.youtube.com/watch?v=KB5O_FQ65lo&hd=1

Last edited by tritonas00 (2013-08-31 21:04:01)

Offline

#6 2013-02-19 02:44:59

danraymond
Member
Registered: 2013-02-19
Posts: 10

Re: System tar & restore

Hi,

This looks great, will it work for Ubuntu?

As its for Arch also I can't use the PKGBUILD mehtod to get the scripts. Is there another way for us ubuntites?

Thanks

Dan Raymond

Offline

#7 2013-02-19 16:54:52

tritonas00
Member
Registered: 2013-01-20
Posts: 71

Re: System tar & restore

Its just two bash scripts. Download them directly from here http://code.google.com/p/system-tar-and … loads/list and run them.

When restoring, select Debian. It worked for lubuntu.

--------------------------------------------------------------------

Also we are working on a new Transfer Mode which will transfer a running system with rsync in specified partitions, generate fstab and install a bootloader big_smile

Last edited by tritonas00 (2013-04-08 18:42:55)

Offline

#8 2013-02-20 04:39:47

danraymond
Member
Registered: 2013-02-19
Posts: 10

Re: System tar & restore

Hi,

Thanks for last post. This really saves me the time I had trying to get this to work myself. Well done!

Restoring to drive  and USB is no issue. How can I restore to say Virtual Box?

[edit] When I try to boot from USB its boots okay but  gets stuck at login (everything seems owned by ROOT?) Change ownership of my user directory but still keeps going back to login after I  enter user name/password - any ideas? I will retry both scripts to see if I did something wrong.

Thanks


Dan

Last edited by danraymond (2013-02-20 10:33:49)

Offline

#9 2013-02-20 16:46:06

tritonas00
Member
Registered: 2013-01-20
Posts: 71

Re: System tar & restore

no problem with permissions here.

what filesystem did you use for the usb ?

Also now in git we have a direct Transfer Mode using rsync. No need to do a backup if you just want to tranfer your system.

Last edited by tritonas00 (2013-02-20 16:51:20)

Offline

#10 2013-02-20 22:45:08

danraymond
Member
Registered: 2013-02-19
Posts: 10

Re: System tar & restore

Hey, Transfer mode could be just what I need. How to find in GIT please?


Danny Raymond

Offline

#11 2013-02-21 00:07:50

tritonas00
Member
Registered: 2013-01-20
Posts: 71

Re: System tar & restore

install rsync and git packages

then in your terminal:

git clone https://github.com/tritonas00/system-tar-and-restore

It will give you a folder with name system-tar-and-restore with the two scripts inside.

Format your usb as ext2 filesystem.

Then run the restore script and select "Transfer this system with rsync" when prompted.

smile

Last edited by tritonas00 (2013-02-21 00:17:01)

Offline

#12 2013-02-22 05:34:08

danraymond
Member
Registered: 2013-02-19
Posts: 10

Re: System tar & restore

Wow the new transfer mode works a treat on my Bodhi Linux installation. Was able to:

a) transfer to USB (which booted first go) I made partitions first of course, with gparted
b) dd USB to an image file in an other drive
c) convert image file (used clonevdi, which works in wine smoothly)
d) load VDI into Virtual Box
e) it boots voila!

Just a query: Is the transfered system a golden copy? I.e. a perfect clone? So can I use it as a master backup or does the transfer process make any changes I should know about.

Great work though, a very clean and simple solution to the backup/clone model ( I like to make my machine perfect for me (haha!) and then make a copy. Of course I then  tweak it some more! ;-} Now I can easily keep todays perfection, tomorrows perfection etc etc! Looove Linux! Oh! and what a simple way to put your system on a larger partiton with minimal sweat!

Thanks for your genius.

Offline

#13 2013-02-22 05:44:53

xyy_xx
Member
Registered: 2012-04-27
Posts: 5

Re: System tar & restore

hi that's awesome, but one question. for example can it restore system to a NEW computer with NEW hard drive?

Offline

#14 2013-02-22 15:24:34

tritonas00
Member
Registered: 2013-01-20
Posts: 71

Re: System tar & restore

xyy_xx

Of course, i do that all the time. Thats why it re-builds initaramfs - generates fstab etc..

I have an archlinux backup with disabled KMS, vesa in xorg.conf and dhcp. Every machine i tried, it restored succesfully. Linux is portable big_smile

danraymond

as far i know rsync preserves everything including acl's, extended attributes so yes its "perfect" clone.

https://wiki.archlinux.org/index.php/Fu … with_rsync

GNU tar does not support those attributes, acl's (except for fedora's pacthed tar)

Of course in both cases all files tranfered/restored.

Also i think there was no need to do it with dd for your vbox. You have already the system in your usb, so create an empty disk in your virtual machine, boot from the usb, make your disk partitions and do a tranfer from your usb to your virtual disk smile Or you could take a backup and restore it from a livecd in your virtual machine.

-----------------------------------------------------------

Also now in git it builds the initramfs for every available kernel and also writes entries for all  kernels  found , in syslinux.cfg (when Syslinux is selected)

I will upload 2.4 version soon and update the aur package.

Last edited by tritonas00 (2013-02-22 16:24:26)

Offline

#15 2013-02-23 06:19:52

danraymond
Member
Registered: 2013-02-19
Posts: 10

Re: System tar & restore

HI Tritonas00,

When you suggest boot usb and transfer to VD in VBox. Are you saying to boot the usb in VBox or outside VBox, never tried this before, suggestions would be helpfull.

Danraymond

Offline

#16 2013-02-23 15:02:15

tritonas00
Member
Registered: 2013-01-20
Posts: 71

Re: System tar & restore

Hi.

Boot the usb in vbox of course

see--> http://www.youtube.com/watch?v=LWyEXGtMQjE

Offline

#17 2013-02-23 22:46:55

demize
Package Maintainer (PM)
From: Stockholm, Sweden
Registered: 2012-10-23
Posts: 20
Website

Re: System tar & restore

tritonas00 wrote:

xyy_xx
danraymond

as far i know rsync preserves everything including acl's, extended attributes so yes its "perfect" clone.

https://wiki.archlinux.org/index.php/Fu … with_rsync

GNU tar does not support those attributes, acl's (except for fedora's pacthed tar)

Of course in both cases all files tranfered/restored.

Have you considered using DAR instead of tar?

Offline

#18 2013-02-24 05:34:39

tritonas00
Member
Registered: 2013-01-20
Posts: 71

Re: System tar & restore

Have you considered using DAR instead of tar?

Yes, i'm actually between dar and star.

Offline

#19 2013-02-27 06:15:38

danraymond
Member
Registered: 2013-02-19
Posts: 10

Re: System tar & restore

Tritonas00

Have achieved direct boot in to VBox wiht my Bodhi backup uisng the information in the video link as suggested. However, very very slow in my rig (2Gb Ram), up to 10 mins!!!!

the dd then clonevdi much quicker. I will try again once 4Gb Ram installed.

Only one problem; your script works so well I have been making lots of copies of my tweaked system (You know.....mmmmmm.... thats not really a problem ;-} --)

Offline

#20 2013-02-27 11:29:33

tritonas00
Member
Registered: 2013-01-20
Posts: 71

Re: System tar & restore

I'm glad you like it! smile

you can try to make a tar archive with the backup script, put it in your usb then boot your vbox with a livecd and attach the usb in your virtual machine, make partitions and do a restore.

i keep my backup archive in my local ftp server so i retrieve it from there (script supports downloading)

also 2.4 is up

Last edited by tritonas00 (2013-04-08 18:43:29)

Offline

#21 2013-03-01 12:49:31

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: System tar & restore

I like the idea. However I am using LVM. Do you plan to support LVM in the future?

Offline

#22 2013-03-02 08:34:33

tritonas00
Member
Registered: 2013-01-20
Posts: 71

Re: System tar & restore

orschiro wrote:

Do you plan to support LVM in the future?

I already added lvm support in git

The script lists all available lvm logical volumes provided in /dev/mapper and mounts them accordingly

Also now the target distro is auto-detected. (git)

Last edited by tritonas00 (2013-03-02 08:41:53)

Offline

#23 2013-03-07 09:12:17

danraymond
Member
Registered: 2013-02-19
Posts: 10

Re: System tar & restore

Mmmmmm now this is an interesting effect!

I used restore (with the transfer option) to clone my running system (booted off its usual home on a usb hard drive) to over write a redundant linux mint distribution on my main PC's  harddrive (sda1).

Well, was I surprised: it seems to have overwritten the linux mint with bodhi (my prefered ubuntu variant at the moment) without deleting any data! So my E17 menu's are resplendent with both  lots of applications (some duplicates), being both ubuntu/debian based they all still run ;-} Might have been tragic with a less compatable distro. No harm done though.

The obvious word to the wise: clear your partition first! But it raises a query: Can the transfer script be modified to somehow clobber the receiving partition, or at least throw a warning with option to bailout to delete the data in the partition?

Great script, saves me so much time.


Dan Raymond

Offline

#24 2013-03-07 15:29:38

tritonas00
Member
Registered: 2013-01-20
Posts: 71

Re: System tar & restore

haha nice big_smile

Ok Dan i will tell the script to not accept partitions that are not empty.

Offline

#25 2013-03-08 07:17:47

danraymond
Member
Registered: 2013-02-19
Posts: 10

Re: System tar & restore

Hello Tritonas00

A small question: can I back up a windows xp drive using this method (via the tar file)? Thinking about  archiving a windows laptop so I can restore it in the future (but possibly to a different laptop).

Offline

Board footer

Powered by FluxBB