On Fri, 26 Sep 2014 11:24:24 +0100 Chris Walker alug_cdw@the-walker-household.co.uk wrote:
On Thu, 25 Sep 2014 18:10:23 +0100 Chris Walker alug_cdw@the-walker-household.co.uk wrote:
Hello,
[snip]
I've tried to run scp from within the phone (using ssh) to a NAS drive but I can't make it connect. At this stage I'd rather not install loads of extra software on the phone just to do the backup so any ideas about copying everything off the phone before it goes back would be appreciated.
Physician heal thyself!
I found a micro SD card in my old Nokia N900 and stuffed that into the phone and have now successfully done an rsync of various directories from the phone to the sd card.
Problems surfaced here when the device, something with 16GB of memory, managed to fill a 16GB memory card.
I managed to find a mount.cifs rpm for the phone and installed that. I can now mount my NAS box on the phone but I'm running into more problems with that.
I'm using this command :- /sbin/mount.cifs //192.168.1.25/Linux_Share/Jolla_Backup/Full_Backup -o username=Xxxxxx,password=Xxxxxx,uid=nemo,gid=nemo,sec=ntlm /media/Linux_Share/
If I then look at the output of mount, I see this :- //192.168.1.25/Linux_Share/Jolla_Backup/Full_Backup on /media/Linux_Share type cifs (rw,relatime,sec=ntlm,unc=\192.168.1.25\Linux_Share,username=Xxxxxx,uid=100000,forceuid,gid=100000,forcegid,addr=192.168.1.25,unix,posixpaths,serverino,acl,rsize=61440,wsize=65536,actimeo=1)
I'm using this command to 'sync' the files :- rsync -arv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} /* /media/Linux_Share
But when it runs, I'm seeing lots of these errors :- rsync: chown "/media/Linux_Share/data/app/.me.scan.android.client-1.apk.bqi2SO" failed: Permission denied (13)
If I check the attributes of the files on the NAS, they're all shown with my userid and group but how can that be when the phone is issuing these commands and there is no user 'chris' on that?
Oh. I should mention that I first issued the command 'devel-su' to run everything as root.
I'm puzzled and would appreciate some help as there's little point in doing a backup if the backup is not worth anything due to wrong permissions.