SparkyLinux Forums

Software & hardware support => Sparky applications => Topic started by: way12go on August 02, 2014, 04:49:52 AM

Title: [Solved] Sparky backup system
Post by: way12go on August 02, 2014, 04:49:52 AM
When I tried to use this option, it says

Quotethe user doesn't have a proper home directory
Title: Re: Sparky backup system
Post by: pavroo on August 02, 2014, 12:05:06 PM
Did you mark your nick name from the user list when the application ask for?
Title: Re: Sparky backup system
Post by: way12go on August 02, 2014, 12:58:49 PM
There is only one user, me and I did mark it. I have 100 MB boot, 30 GB root, 4 GB swap and rest home.
Title: Re: Sparky backup system
Post by: pavroo on August 02, 2014, 04:56:11 PM
OK, let me check it, I'll back soon.
Title: Re: Sparky backup system
Post by: pavroo on August 02, 2014, 09:01:14 PM
It's really strange.
The output message says that the user you chosen is different that the user's home folder (for example: user: pavroo -> user folder: /home/pavroo). The script says that the two thing are not the same.
That's why it stopped.
Title: Re: Sparky backup system
Post by: way12go on August 03, 2014, 05:16:41 AM
There is only one entry. Pick and info. No option to choose user folder
Title: Re: Sparky backup system
Post by: way12go on August 03, 2014, 05:19:46 AM
I clicked cancel on user selecting option and it's working. If it works I will mark this solved.
Title: Re: Sparky backup system
Post by: way12go on August 03, 2014, 06:25:24 AM
I installed Age Of Empires HD on play on linux and Microsoft Office 2007. AOE HD is working great, faster than windows I guess. Office 2007 was installed in a minute or two. MS word and MS excel are working and rest of the apps are not working even though it's a full install. I thought my desktop and these apps can be found in backup.

Backup works thanks. I did backup entire system and burned it to USB pendrive and tried to boot using F10 and it didn't recognize pendrive then I changed BIOS setting to boot from USB HD, USB FD and so on and I also disabled fast boot I enabled USB some option (I forgot) and it worked.

All installed apps are present. The default settings I changed like wallpaper, dock position didn't get saved. The new ISO has default sparky wallpaper and default sparky LxDE dock. Also Age Of Empires and Office 2007 were absent.

Sparky backup is working great. I shall mark the post solved.

QuoteAll I have to do is

click backup option

and then a popup window appears

click cancel

and you have your ISO.

Done.

Thanks pavroo for this amazing distro.

This distro is free from errors. Just perfect.

Thanks again.
Title: Re: [Solved] Sparky backup system
Post by: pavroo on August 03, 2014, 12:42:22 PM
QuoteThere is only one entry. Pick and info. No option to choose user folder
I know that, I was trying to tell you how does it works.
I am still surprised that you did not click on the user name.
I made a test on my machine and it works fine.
QuoteThe default settings I changed like wallpaper, dock position didn't get saved.
No, it doesn't.
If you used a wallpaper or any different desktop setting from your home folder - i won't be saved.
QuoteAlso Age Of Empires and Office 2007 were absent.
That's right, the same situation as above.
If you installed some applications using Wine, all of theme have been installed in your home directory.
If can't be copied to backuped iso image.

Title: Re: [Solved] Sparky backup system
Post by: way12go on August 03, 2014, 01:38:28 PM
If I click on user it says
Quoteuser doesn't have a proper home directory

If I click cancel or close it then backup starts.

If I click "ok " I get to see the initial screen.

Does it mean that root and home shouldn't be on two different partitions?
Title: Re: [Solved] Sparky backup system
Post by: pavroo on August 03, 2014, 05:34:15 PM
QuoteIf I click cancel or close it then backup starts.
If it does, just make your backup.
QuoteDoes it mean that root and home shouldn't be on two different partitions?
No it doesn't have to.
For some reasons the backup process doesn't start on your computer when you click on your nick name.
I checked it more than 5 times today, with different configuration and still works fine.
Anyway I found and fixed a few small issues so the new version 0.1.8 going to the repository now.
Title: Re: [Solved] Sparky backup system
Post by: way12go on August 04, 2014, 03:59:36 PM
I upgraded everything and now even closing without choosing user doesn't work. It completely started to fail. Not at all working.

Then what I did is, I created a desktop shortcut from settings and went to view properties and found
Quotegksu /usr/bin/sparkybackup-gui

Then I did
Quotesudo sparkybackup

Then I did
Quotesudo sparkybackup dist

GUI version is not working.

CUI version is working.

Still the iso is 2 GB. It doesn't look as it detected the home directory. I will burn it to usb live boot it and report back to you.

As far as I know it say home user directory is not proper.

I have 100 MB SDA1 boot ext2
30 GB SDA2 root ext4 logical partition
4 GB SDA3 extended partition swap
rest logical partition SDA4 Home directory.
Title: Re: [Solved] Sparky backup system
Post by: way12go on August 04, 2014, 04:06:18 PM
Home directory is 6 GB without any downloaded or extra files so the ISO should be around 8 GB but it's only 2 GB. Why is this not working for me? What seems to be the problem?
Title: Re: [Solved] Sparky backup system
Post by: way12go on August 04, 2014, 05:05:11 PM
The result is an updated 3 GB ISO file. But Age Of Empires is absent. I guess home folder is still not detected. Any way Command Line Interface at least backs up the ISO. And when I live booted the USB pendrive I got debian desktop with dock on the left side showing firefox icon even though it's iceweasel. Any way that's not the problem. Appearances can be changed.
Title: Re: [Solved] Sparky backup system
Post by: pavroo on August 04, 2014, 05:16:16 PM
QuoteAge Of Empires is absent.
As I said before the home folder is not copied, only desktop's config files.
Can you run the command in a text console emulator and show me result, please:
sudo sparkybackup-gui

Title: Re: [Solved] Sparky backup system
Post by: way12go on August 05, 2014, 02:19:12 AM
GUI opens.
Try to backup and then this is the message I get

Quoteneed to be in the user directory....exiting
Title: Re: [Solved] Sparky backup system
Post by: pavroo on August 05, 2014, 12:54:34 PM
What sparky version you have? what desktop, 32 or 64 bit?
Title: Re: [Solved] Sparky backup system
Post by: way12go on August 05, 2014, 03:49:18 PM
Latest sparkylinux 3.4 LxDE version 64 bit.
Title: Re: [Solved] Sparky backup system
Post by: pavroo on August 06, 2014, 12:24:11 AM
Download the tar package:
sparkylinux.org/files/sparkybackup-gui.tar.gz
Unpack it and move the file to /usr/bin to override the old one.
Then try to run it from the menu.
If failed, run it it a terminal: gksu sparkybackup-gui
Let me know whatever happens.
Title: Re: [Solved] Sparky backup system
Post by: way12go on August 06, 2014, 04:38:18 AM
It's working now. After the ISO is finished and tested I will let you know.

Thanks a lot.
Title: Re: [Solved] Sparky backup system
Post by: way12go on August 06, 2014, 06:44:44 AM
The result is I have a 3 GB ISO and after burning it to USB pendrive I booted it live and it says... other and user name field and password field. I typed

live

live

didn't work.

On top left corner it shows as "live".

What is the

user name

and

password?
Title: Re: [Solved] Sparky backup system
Post by: pavroo on August 06, 2014, 09:32:10 AM
It's "live", but it's a different problem.
If you did not clean up yet after making the iso, go to :
/home/sparkybackup/sparkybackup/dummysys/etc/skel
and check what is the size (in MB) of the skel folder.
If you cleaned up it already, make the iso again and check the size after.
Title: Re: [Solved] Sparky backup system
Post by: way12go on August 06, 2014, 01:23:48 PM
Unfortunately there is no such folder.

Am I supposed to make the ISO again?

What do you mean I've to check folder size after making ISO? What has folder size to do with ISO. If such folder exists should I report its size? Is that what you meant?

/etc/skel is also absent. This system doesn't have any "skel" folder.
Title: Re: [Solved] Sparky backup system
Post by: way12go on August 06, 2014, 01:57:45 PM
http://sourceforge.net/p/sparkylinux/discussion/applications/thread/cbd410aa/

Should I try this solution?

Clear and then go root and backup ISO?
Title: Re: [Solved] Sparky backup system
Post by: way12go on August 06, 2014, 03:17:47 PM
I did

Quotesudo bash

entered password

and then entered

Quotesudo sparkybackup backup sparkylinux.iso

Now I'm getting an ISO file larger than 4 GB, don't know the final size yet. It's very slow and 15% is completed and I will burn it to USB pendrive try to boot it and post the result.

root@s:/home/s# sudo sparkybackup backup sparkylinux.iso
System Backup Mode Selected
Checking if the /home/sparkybackup/sparkybackup folder has been created
Copying /var and /etc to temp area and excluding extra files
sed: can't read //home/lost+found/.config/Thunar/volmanrc: No such file or directory
cp: cannot stat '//home/lost+found/.config/volmanrc': No such file or directory
sed: can't read //home/pavroo1/.config/Thunar/volmanrc: No such file or directory
cp: cannot stat '//home/pavroo1/.config/volmanrc': No such file or directory
sed: can't read //home/s/.config/Thunar/volmanrc: No such file or directory
cp: cannot stat '//home/s/.config/volmanrc': No such file or directory
sed: can't read //home/sparkybackup/.config/Thunar/volmanrc: No such file or directory
cp: cannot stat '//home/sparkybackup/.config/volmanrc': No such file or directory
Setting up live options for backup mode
update-initramfs: Generating /boot/initrd.img-3.14-2-amd64
live-boot: core filesystems devices utils memdisk udev wget blockdev.
Copying your kernel and initrd for the livecd
Excluding folders from the backup that will cause issues
Creating filesystem.squashfs   ... this will take a while so be patient
Parallel mksquashfs: Using 2 processors
Creating 4.0 filesystem on /home/sparkybackup/sparkybackup/ISOTMP/live/filesystem.squashfs, block size 1048576
[=======================|                                  ] 171822/416769  41%^Csed: can't read //home/lost+found/.config/Thunar/volmanrc: No such file or directory
cp: cannot stat '//home/lost+found/.config/volmanrc': No such file or directory
sed: can't read //home/pavroo1/.config/Thunar/volmanrc: No such file or directory
cp: cannot stat '//home/pavroo1/.config/volmanrc': No such file or directory
sed: can't read //home/s/.config/Thunar/volmanrc: No such file or directory
cp: cannot stat '//home/s/.config/volmanrc': No such file or directory
sed: can't read //home/sparkybackup/.config/Thunar/volmanrc: No such file or directory
cp: cannot stat '//home/sparkybackup/.config/volmanrc': No such file or directory
find: `/etc/skel/': No such file or directory
ls: cannot access /home/sparkybackup/sparkybackup/ISOTMP/live/filesystem.squashfs: No such file or directory
/usr/bin/sparkybackup: line 644: [: : integer expression expected
The cd filesystem is missing.  Either there was a problem creating the compressed filesystem or you are trying to run sudo sparkybackup dist iso before sudo sparkybackup dist cdfs
root@s:/home/s# sudo sparkybackup clean

I canceled because the sparky backup folder size is more than 56 GB.
Removing the build directory now...
Done...Exiting
root@s:/home/s# sudo sparkybackup dist

Distribution Mode Selected
Checking if the /home/sparkybackup/sparkybackup folder has been created
Copying /var and /etc to temp area and excluding extra files
cp: cannot create regular file '/home/sparkybackup/sparkybackup/dummysys/etc/skel/Desktop/': No such file or directory
chmod: cannot access '/home/sparkybackup/sparkybackup/dummysys/etc/skel/Desktop/sparkybackup-installer.desktop': No such file or directory
Setting up live options for dist mode
update-initramfs: Generating /boot/initrd.img-3.14-2-amd64
live-boot: core filesystems devices utils memdisk udev wget blockdev.
Copying your kernel and initrd for the livecd
Creating filesystem.squashfs   ... this will take a while so be patient
Parallel mksquashfs: Using 2 processors
Creating 4.0 filesystem on /home/sparkybackup/sparkybackup/ISOTMP/live/filesystem.squashfs, block size 1048576.
[=====-                                                    ]  17818/198964   8%^[=====\                                                    ]  17819/198964   8%find: `/etc/skel/': No such file or directory
ls: cannot access /home/sparkybackup/sparkybackup/ISOTMP/live/filesystem.squashfs: No such file or directory
/usr/bin/sparkybackup: line 644: [: : integer expression expected
The cd filesystem is missing.  Either there was a problem creating the compressed filesystem or you are trying to run sudo sparkybackup dist iso before sudo sparkybackup dist cdfs
root@s:/home/s#

Title: Re: [Solved] Sparky backup system
Post by: pavroo on August 07, 2014, 12:51:03 AM
Should I try this solution?
Clear and then go root and backup ISO?

Don't, it was a different problem, solved already.

Make the backup manually.
1. Create skel/Desktop dir if it does not exist in your system:
sudo mkdir /etc/skel/Desktop
2. Clean up:
sudo sparkybackup clean
3. Clean the deb packages via package manager as well:
sudo apt-get autoremove
sudo apt-get clean

4. Make the iso:
sudo sparkybackup dist
If you will get the message:
QuoteThe compressed file system is larger than the iso9660 specification allows for a single file. You must try to reduce the amount of data you are backing up and try again.
you have to reduce number of your packages, means uninstall something because you have too many applications installed and the iso image will be bigger then the limit 3.99999 MB.
So the iso can't be done !

I canceled because the sparky backup folder size is more than 56 GB.
Everytime you'd like to make a fresh backup iso clean up the working directory via GUI-> Clean option or the command as above.
If you will not do that, every next backup will be failed.

Anyway give me results of the commands, please (as regular user, not a root):
whoami
and
ls -l /home
I am still trying to detect the problem with GUI.
Title: Re: [Solved] Sparky backup system
Post by: way12go on August 08, 2014, 01:33:29 AM
s@s:~$ whoami
s
s@s:~$ ls -l /home
total 28
drwx------  2 root root 16384 Jul 16 09:17 lost+found
drwxr-xr-x  2 root root  4096 Jul 21 19:03 pavroo1
drwxr-xr-x 48 s    s     4096 Aug  8 04:46 s
drwxr-xr-x  3 root root  4096 Aug  8 04:47 sparkybackup
s@s:~$
Title: Re: [Solved] Sparky backup system
Post by: way12go on August 08, 2014, 02:21:32 AM
The ISO is 3 GB and is working and boots to Debian desktop instead of sparkylinux desktop and doesn't have Age Of Empires. Never mind. I will stick with this one. Thanks.
Title: Re: [Solved] Sparky backup system
Post by: pavroo on August 08, 2014, 02:05:27 PM
Your user name is just "s".
Mayby this is the problem.
I suggest to create the user name having more than 2 letters next time.
Quotedoesn't have Age Of Empires
No, it doesn't.
As I said before it does not copy your home directory stuff.
Age of Empires has been installed via Wine or PlayOnLinux so is located in your home folder.