Attempting to rebuild my save.dat file
Posted: 28 Jan 2014, 06:03
I'm trying to create a process that allows me to recreate my save.dat file. I'm looking to copy all my files from my old save.dat's /home/guest/ folder to my new fresh /home/guest/ folder then run another .sh file to complete the process.
To restore my old save.dat /home/guest/ folder I created this:
But when I run it I get this:
I think I understand the guest/guest/ problem but not sure how I limit the restore to just the files in the /home/guest/ folder. I also don't understand the Operation not permitted problem.
Help!
To restore my old save.dat /home/guest/ folder I created this:
Code: Select all
#!/bin/sh
mloop /mnt/sda6/porteussave.dat
cp -a /mnt/loop/home/guest/ /home/guest/
Code: Select all
guest@porteus:~$ sh /mnt/sda6/porteusfiles/RestoreBkups.sh
Please enter root's password below
Password:
using /dev/loop6
Please wait while i gather some info ....
#################################
Your data file has been mounted at:
/mnt/loop
You can unmount it by typing uloop
Here is a list of the files:
etc home opt root usr var
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/bookmarkbackups/.wh.bookmarks-2013-12-03.json’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/bookmarkbackups/.wh.bookmarks-2013-12-06.json’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/bookmarkbackups/.wh.bookmarks-2013-12-04.json’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/bookmarkbackups/.wh.bookmarks-2013-12-09.json’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/bookmarkbackups/.wh.bookmarks-2013-12-07.json’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/bookmarkbackups/.wh.bookmarks-2013-12-15.json’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/bookmarkbackups/.wh.bookmarks-2013-12-17.json’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/bookmarkbackups/.wh.bookmarks-2013-12-16.json’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/bookmarkbackups/.wh.bookmarks-2013-12-21.json’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/bookmarkbackups/.wh.bookmarks-2013-12-19.json’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/bookmarkbackups/.wh.bookmarks-2013-12-28.json’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/bookmarkbackups/.wh.bookmarks-2013-12-27.json’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/bookmarkbackups/.wh.bookmarks-2013-12-30.json’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/bookmarkbackups/.wh.bookmarks-2013-12-29.json’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/bookmarkbackups/.wh.bookmarks-2014-01-12.json’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/bookmarkbackups/.wh.bookmarks-2014-01-09.json’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/.wh.places.sqlite-wal’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/.wh.places.sqlite-shm’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/.wh.cookies.sqlite-wal’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/.wh.cookies.sqlite-shm’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/.wh.sessionstore.js’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/.wh.urlclassifierkey3.txt’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/.wh.healthreport.sqlite-wal’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/.wh.healthreport.sqlite-shm’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/.wh.addons.sqlite-journal’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/.wh.webappsstore.sqlite-wal’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.mozilla/firefox/c3pp43bg.default/.wh.webappsstore.sqlite-shm’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.cache/mozilla/firefox/c3pp43bg.default/safebrowsing/.wh..wh..opq’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.cache/mozilla/firefox/c3pp43bg.default/startupCache/.wh..wh..opq’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.cache/mozilla/firefox/c3pp43bg.default/.wh.thumbnails’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.cache/mozilla/firefox/c3pp43bg.default/thumbnails/.wh..wh..opq’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/.wh..wh..opq’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.macromedia/Flash_Player/#SharedObjects/.wh.6YUW7Q4G’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/Desktop/.wh.Hibernate’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/Desktop/.wh.Suspend.desktop’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/Desktop/.wh.suspend.desktop’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/Downloads/.wh.acpi_handler.sh’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.wh.Touchpad.sh’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.wh.bookmarks-2013-12-04.json’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.wh.bookmarks-2013-12-17.json’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.wh.bookmarks-2013-12-21.json’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.wh.terminalmsgs.log’: Operation not permitted
cp: cannot create regular file ‘/home/guest/guest/.wh.bookmarks-2013-12-27.json’: Operation not permitted
guest@porteus:~$
Help!