Welcome
Welcome to refracta

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!

Snapshot exclude files not always working

Ask your questions here.

Snapshot exclude files not always working

Postby vsido » Tue Feb 10, 2015 10:34 pm

I have successfully setup everything to my preferences but find that what is set in the excludes file (/)usr/lib/refractasnapshot/snapshot_exlude.list is not always followed ...

Specifically I a have (/)usr/share/doc as an exclude but only one in 10 builds has it been excluded

I also have the - (/)home/*/.[a-z,A-Z,09]* option uncommented to exclude all hidden files and directories from /home ( I then go in and grab (/)etc/skel and set it up at the edit files break). This also has been sporadic behavior where sometimes all is copied and others only a directory or two

Is there something in the exclude file I have messed up or is there a specific pattern to setting it up?
User avatar
vsido
 
Posts: 90
Joined: Fri Jan 30, 2015 3:38 pm

Re: Snapshot exclude files not always working

Postby fsmithred » Tue Feb 10, 2015 11:26 pm

We've seen some inconsistent behavior in the rsync excludes in the past. Nobody has been able to pin down the exact problem. If you look hard enough, you can probably find some discussions about it on this forum.

We've messed around with the excludes, and we stop messing if it seems to be working. The way it's supposed to work is that everything to the right of the last slash in the path is affected (copied or excluded, depending on what you told it to do), so you shouldn't need to use an asterisk at the end to remove all files. Just a slash at the end of the last directory in the path should copy the directory but not any of the files inside. Yet you see we have final asterisks in the excludes file. Excluding /usr/share/doc should result in the doc directory not existing on the copied filesystem. Excluding /usr/share/doc/ should copy just an empty directory.

Sorry I can't be more definitive about that. You might get some ideas reading the section on includes and excludes in man rsync. You can do some tricky things with it.

I thought of another way. (untested) At the edit-menu pause, chroot into the filesystem at $work_dir/myfs/, then delete the user and /home/user. Add the word, config, to the boot append line, and live-config will create a user on the fly. Login 'user' password 'live'. And the user's home will be created from etc/skel.
Code: Select all
chroot /home/work/myfs
deluser user
rm -r /home/user
exit


One thing I'm more sure about is that etc is the only directory that causes the forum software to puke when it starts with a slash. /home, /usr and even /bin are ok.
User avatar
fsmithred
 
Posts: 2101
Joined: Wed Mar 09, 2011 9:13 pm

Re: Snapshot exclude files not always working

Postby golinux » Wed Feb 11, 2015 12:32 am

Here is one post discussing exclude anomalies. May or may not be useful to you.
May the FORK be with you!
User avatar
golinux
 
Posts: 663
Joined: Thu Nov 08, 2012 1:23 am

Re: Snapshot exclude files not always working

Postby vsido » Wed Feb 11, 2015 12:54 am

@ fsmithred thank you for the detailed explanation and examples... I will most definitely use that and will find the way to get the excludes working as they should. As long as I know it is an issue I can deal better with finding a solution

@ golinux, thanks for that link... it is quite the read and a lot of great discussion and solutions

I have successfully reduced my distro (VSIDO) down to the same levels I was getting with remastersys (even slightly better).... my users have indicated already that they prefer the refracta installer so once I get the efi grub issue resolved we will be moving to refracta...

x64 bit is at 465 Mib
x32 bit is at 485 Mib

Thanks again
User avatar
vsido
 
Posts: 90
Joined: Fri Jan 30, 2015 3:38 pm

Re: Snapshot exclude files not always working

Postby golinux » Wed Feb 11, 2015 2:32 am

Another happy refractasnapshot user. YEA! Kudos to fsmithred and his team!!
May the FORK be with you!
User avatar
golinux
 
Posts: 663
Joined: Thu Nov 08, 2012 1:23 am

Re: Snapshot exclude files not always working

Postby vsido » Wed Feb 11, 2015 2:50 am

And in the end, it was this users error that was the issue...

There was a space at the end of /usr/share/doc ... So it was actually excluding what was there, just not what I wanted. I removed the space and it worked..

I could claim my advanced age and deteriorating eyesight, but I will not.. Although it is hard to see something that is not there... :D

golinux wrote:Another happy refractasnapshot user. YEA! Kudos to fsmithred and his team!!


Agreed.. well done team!
User avatar
vsido
 
Posts: 90
Joined: Fri Jan 30, 2015 3:38 pm

Re: Snapshot exclude files not always working

Postby vsido » Wed Feb 11, 2015 4:03 pm

fsmithred wrote:I thought of another way. (untested) At the edit-menu pause, chroot into the filesystem at $work_dir/myfs/, then delete the user and /home/user. Add the word, config, to the boot append line, and live-config will create a user on the fly. Login 'user' password 'live'. And the user's home will be created from etc/skel.
Code: Select all
chroot /home/work/myfs
deluser user
rm -r /home/user
exit



Worked perfectly... the user I use is vsido instead of user and removing both that user and the home directory in chroot was simple ... on the LiveCD it also recreated vsido as the user due to the settings in conf...

Just what I wanted... Thank you fsmithred ;)
User avatar
vsido
 
Posts: 90
Joined: Fri Jan 30, 2015 3:38 pm

Re: Snapshot exclude files not always working

Postby fsmithred » Wed Feb 11, 2015 4:47 pm

Which config held your correct user name? Only way I can think of right now is to specify it in the boot command.
User avatar
fsmithred
 
Posts: 2101
Joined: Wed Mar 09, 2011 9:13 pm

Re: Snapshot exclude files not always working

Postby vsido » Wed Feb 11, 2015 6:07 pm

You know, I just realized there is no settings in the conf is there? I honestly do not know why it is keeping vsido as the default ... perhaps it comes from lightdm since I use vsido as the build login
User avatar
vsido
 
Posts: 90
Joined: Fri Jan 30, 2015 3:38 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron
suspicion-preferred