cleanup script copy update
- Ed_P
- Contributor
- Posts: 8343
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
cleanup script copy update
abelM PROBLEM!!
Last night after making changes to a couple of my scripts in /home/guest/ I ran the script to tweak cleanup to only save updated files. sed -i 's/cp -af /cp -afu /' /mnt/live/cleanup I checked the file and the update took. I shutdown and it updated my save.dat file. Today I rebooted and went to work on my scripts more and found that they didn't have any of the changes I made last night!!!
My save.dat file is 64% full with 300+MB available so it being full is not the problem.
Last night after making changes to a couple of my scripts in /home/guest/ I ran the script to tweak cleanup to only save updated files. sed -i 's/cp -af /cp -afu /' /mnt/live/cleanup I checked the file and the update took. I shutdown and it updated my save.dat file. Today I rebooted and went to work on my scripts more and found that they didn't have any of the changes I made last night!!!
My save.dat file is 64% full with 300+MB available so it being full is not the problem.
Ed
- Ed_P
- Contributor
- Posts: 8343
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
cleanup script copy update
brokenman, you might want to hold off on the cleanup script change in 4.0 till this gets resolved.
Any chance cleanup doesn't use the local time setting the DE uses?
Any chance cleanup doesn't use the local time setting the DE uses?
Ed
-
- Black ninja
- Posts: 75
- Joined: 28 Oct 2017, 13:40
- Distribution: 4.0 XFCE, Manjaro
- Location: .bay.de
cleanup script copy update
Hi Ed,
did you update your initrd.xz as abelM/brokenman stated earlier in this thread?
cheers
apollo
did you update your initrd.xz as abelM/brokenman stated earlier in this thread?
cheers
apollo
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
cleanup script copy update
I will have to investigate. I am not sure how cp -u handles updated files.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- Ed_P
- Contributor
- Posts: 8343
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
cleanup script copy update
No, I boot from the 3.2.2 ISO.
In reviewing the begining of this thread I see that the adding of the u was already found to not work with 3.2.2. Dumb me forgot.
Ed
- abelM
- Black ninja
- Posts: 50
- Joined: 22 Oct 2017, 12:35
- Distribution: Porteus v-3.2.2 64 bit
- Location: Argentina
- Contact:
cleanup script copy update
Hi Ed!
You're not alone. I've made the same mistake! That's why I'm testing new code in dump-session bypassing cleanup save on exit
BTW I've added a small fix to dump-session you can see at direct update at dump session (Post by abelM #60792)
Regards
You're not alone. I've made the same mistake! That's why I'm testing new code in dump-session bypassing cleanup save on exit
Code: Select all
# /etc/rc.d/rc.local_shutdown
dump-session && rm -f /mnt/live/tmp/changes-exit
Regards
-
- Black ninja
- Posts: 75
- Joined: 28 Oct 2017, 13:40
- Distribution: 4.0 XFCE, Manjaro
- Location: .bay.de
cleanup script copy update
@brokenman
regarding to the cp manpage, -u updates files which are "newer" in the source or are completely missing at the destination...should be the way we want it to work
regarding to the cp manpage, -u updates files which are "newer" in the source or are completely missing at the destination...should be the way we want it to work
- abelM
- Black ninja
- Posts: 50
- Joined: 22 Oct 2017, 12:35
- Distribution: Porteus v-3.2.2 64 bit
- Location: Argentina
- Contact:
cleanup script copy update
That's OK! Another interesting point is saving from union system to persistence without using a temporary folder. The proposed dump-session achieves both goals and cleanup could eventually too.
Regards
Regards
-
- Contributor
- Posts: 1857
- Joined: 09 Aug 2013, 14:25
- Distribution: Porteus and Nemesis
- Location: USA
cleanup script copy update
I use a USB and it is ext4 format and I save my data in the changes directory on the USB. It works great on the first boot up but on the 2nd boot up it boots in to a black screen. It likes when I power down after the first boot up something gets delete in the changes directory on the USB. I must be the only one using this setup.
I thought it was my Mate build but I try Openbox and LXDE but they did it too (black screen).
I like to stay current but if it don't get fixed I won't be able too.
I thought it was my Mate build but I try Openbox and LXDE but they did it too (black screen).
I like to stay current but if it don't get fixed I won't be able too.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.