Backing Up save.dat in Copy Agent
Backing Up save.dat in Copy Agent
Seasons Greetings!
I'd like to know whether Porteus has any issues preventing you from moving/copying your save.dat file to your Copy Agent folder to so be automatically backed-up to the Copy cloud. Some Puppy mavens said if Porteus occasionally auto-saves its save file like Puppy does that it could pose a problem during uploads. Is this issue a show-stopper?
Jim in NYC
I'd like to know whether Porteus has any issues preventing you from moving/copying your save.dat file to your Copy Agent folder to so be automatically backed-up to the Copy cloud. Some Puppy mavens said if Porteus occasionally auto-saves its save file like Puppy does that it could pose a problem during uploads. Is this issue a show-stopper?
Jim in NYC
Re: Backing Up save.dat in Copy Agent
Thanks for replying! Is there such a way to regulate or stop a save writing process in Porteus to allow a full uninterrupted Copy upload? There's a way in Puppy but I've gone thru the Porteus control panels and can't find a way.phhpro wrote:While I don't use it myself, I figure it's possible to set a save frequency; lets say, every 30 minutes or on the hour. Then add a cron job to cp your fresh save.dat into the copy folder. Transfering open streams (while being written to) will almost certainly result in corrupted data.
Jim in NYC
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Backing Up save.dat in Copy Agent
"Is there such a way to regulate or stop a save writing process in Porteus to allow a full uninterrupted Copy upload?"
you could use 'changes=EXIT:' cheatcode and 'dump-session' script:
- changes=EXIT: delays writing current session till the shutdown (it makes safe to upload save.dat to the cloud)
- 'dump-session' let's you save your current session to save.dat in this very moment
all what you need to do is to add 'EXIT:' extension to your 'changes=' cheatcode and create cron job which will run 'dump-session' command and upload save.dat to the cloud.
you could use 'changes=EXIT:' cheatcode and 'dump-session' script:
- changes=EXIT: delays writing current session till the shutdown (it makes safe to upload save.dat to the cloud)
- 'dump-session' let's you save your current session to save.dat in this very moment
all what you need to do is to add 'EXIT:' extension to your 'changes=' cheatcode and create cron job which will run 'dump-session' command and upload save.dat to the cloud.
Please add [Solved] to your thread title if the solution was found.
Re: Backing Up save.dat in Copy Agent
Thanks for swift reply!fanthom wrote:"Is there such a way to regulate or stop a save writing process in Porteus to allow a full uninterrupted Copy upload?"
you could use 'changes=EXIT:' cheatcode and 'dump-session' script:
- changes=EXIT: delays writing current session till the shutdown (it makes safe to upload save.dat to the cloud)
- 'dump-session' let's you save your current session to save.dat in this very moment
all what you need to do is to add 'EXIT:' extension to your 'changes=' cheatcode and create cron job which will run 'dump-session' command and upload save.dat to the cloud.
Just to be safe, this is how your suggestion should look?:
LABEL XFCE RAM
MENU LABEL XFCE RAM ROOT BOOT
KERNEL vmlinuz
APPEND initrd=initrd.xz changes=/porteus/changes/porteussave2.dat fsck load=xfce copy2ram login=root
changes=EXIT:'
'dump-session' script:
TEXT HELP
Run Porteus the same as above,
but first copy all data to RAM
to get a huge speed increase
(needs >512MB)
ENDTEXT
Just a newbie playing it by ear!
Jim in NYC
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Backing Up save.dat in Copy Agent
@phhpro
cron job starts a script which periodically which runs 'dump-session' then makes a backup of updated save.dat (upload to the cloud, copy to another partition, etc..)
@jimwg
your APPEND should look like here:
please read /boot/docs/cheatcodes.txt carefully.
now create simple script and cron job as described here:
http://www.linuxquestions.org/questions ... 175468865/
or on many other HOWTOs which you can find on google.
it doesnt because OP will be using 'dump-session' script which saves session on a request so once again:I may be wrong, but doesn't your solution suggest the save operation upon logging out?
cron job starts a script which periodically which runs 'dump-session' then makes a backup of updated save.dat (upload to the cloud, copy to another partition, etc..)
@jimwg
your APPEND should look like here:
Code: Select all
APPEND initrd=initrd.xz changes=EXIT:/porteus/changes/porteussave2.dat fsck load=xfce copy2ram login=root
now create simple script and cron job as described here:
http://www.linuxquestions.org/questions ... 175468865/
or on many other HOWTOs which you can find on google.
Please add [Solved] to your thread title if the solution was found.
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: Backing Up save.dat in Copy Agent
Why not just change the 'Copy Agent' default folder to /mnt/live/memory/changes/ and have it exclude folder you don't want uploaded?
This way when any change is made it will be moved to the online storage when your copy agent syncs. I havn't tried this but considered doing it with dropbox just for fun. It sounds much easier than organizing the cron jobs client side.
This way when any change is made it will be moved to the online storage when your copy agent syncs. I havn't tried this but considered doing it with dropbox just for fun. It sounds much easier than organizing the cron jobs client side.
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.
-
- Contributor
- Posts: 681
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: Russia is causing the immense damage to humanity
- Contact:
Re: Backing Up save.dat in Copy Agent
Does 'Copy Agent' honour file permissions and symlinks?
There is no 'sync' Copy Agent -> host, always host sends data to Copy Agent for one PC and one current profile (if time is correct for both - always data on host is newer or the same). Problem can be for more than one PC or for Summer time - adjusting clock.
There is no 'sync' Copy Agent -> host, always host sends data to Copy Agent for one PC and one current profile (if time is correct for both - always data on host is newer or the same). Problem can be for more than one PC or for Summer time - adjusting clock.
You have mind and feelings. Be wise and clever.
Re: Backing Up save.dat in Copy Agent
So would it be safe to transplant your Seamonkey folder out of .mozilla and into a Copy folder and link it back to .mozilla with an alias for a constant Mail backup or is it always too active for CopyAgent to safely sync with?
Jim in NYC
Jim in NYC
-
- Contributor
- Posts: 681
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: Russia is causing the immense damage to humanity
- Contact:
Re: Backing Up save.dat in Copy Agent
@jimwg
Yes and no.
You don't need transplant Seamonkey - only make link to this in your Copy Agent folder but it is not classic backup - your 'backup' is actual copy (synchronizing) of Seamonkey so if you delete or corrupt something - it will be deleted (corrupted) on your remote copy (I don't know if Copy Agent "moves" to Trash deleted files for potential restoring but even if it support Trash restoring many files can be difficult). If you want have true backup you should transplant Seamonkey time and again and add for every copy new name (date of backup) or synchronize only if you are sure your Seamonkey files are correct and not opened by any program. Permissions are lost but it doesn't matter in this case.
Yes and no.
You don't need transplant Seamonkey - only make link to this in your Copy Agent folder but it is not classic backup - your 'backup' is actual copy (synchronizing) of Seamonkey so if you delete or corrupt something - it will be deleted (corrupted) on your remote copy (I don't know if Copy Agent "moves" to Trash deleted files for potential restoring but even if it support Trash restoring many files can be difficult). If you want have true backup you should transplant Seamonkey time and again and add for every copy new name (date of backup) or synchronize only if you are sure your Seamonkey files are correct and not opened by any program. Permissions are lost but it doesn't matter in this case.
You have mind and feelings. Be wise and clever.
Re: Backing Up save.dat in Copy Agent
Copy's menu on panel bar has fonts that appear "ghosted" or "embossed" and hard to see even though it's fully functional on Porteus 3.0, yet fonts and display of other menus on bar appear normal. I used the custom Porteus Copy app here to create the Copy menu here rather than the Linux one on the Copy site so could that be the reason? Is there a way to alter its font rendering? Thanks!
Jinm in NYC
Jinm in NYC
-
- Contributor
- Posts: 681
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: Russia is causing the immense damage to humanity
- Contact:
Re: Backing Up save.dat in Copy Agent
Too much complicated/customized by you so only you can find (by testing/trying) the best answer/solution. You can add picture here to see what's exactly wrong.
You have mind and feelings. Be wise and clever.