← Back to team overview

ubuntu-phone team mailing list archive

Fwd: Simple backup script "buds"

 

When run as just a user from my laptop (substituting 1234 for the
passcode on my phone):

bruce@bruce-Inspiron-N5050:~/UbuntuTouch$ sh buds 10.0.1.86 1234
mkdir: cannot create directory
‘/home/bruce/buds/backup/20160402-150820’: Permission denied
tee: /home/bruce/buds/backup/20160402-150820/backup.log: No such file
or directory
20160402-150820 : Get device code name
tee: /home/bruce/buds/backup/20160402-150820/backup.log: No such file
or directory
20160402-150820 : Got device code name: aosp_mako
tee: /home/bruce/buds/backup/20160402-150820/backup.log: No such file
or directory
20160402-150820 : Get device serial number
tee: /home/bruce/buds/backup/20160402-150820/backup.log: No such file
or directory
20160402-150821 : Got device serial number: 003fd89d5c4d01ff
tee: /home/bruce/buds/backup/20160402-150820/backup.log: No such file
or directory
20160402-150821 : Determine disk space used on device
tee: /home/bruce/buds/backup/20160402-150820/backup.log: No such file
or directory
20160402-150822 : Finished determining disk space used on device
tee: /home/bruce/buds/backup/20160402-150820/backup.log: No such file
or directory
20160402-150822 : Determine free space on current machine
df: ‘/home/bruce/buds/backup/20160402-150820’: No such file or directory
tee: /home/bruce/buds/backup/20160402-150820/backup.log: No such file
or directory
20160402-150822 : Finished determining free space on current machine
tee: /home/bruce/buds/backup/20160402-150820/backup.log: No such file
or directory
20160402-150822 : Approximate disk space used on device (K): 380244
tee: /home/bruce/buds/backup/20160402-150820/backup.log: No such file
or directory
20160402-150822 : Approximate free space on backup disk (K):
buds: 70: [: Illegal number:
tee: /home/bruce/buds/backup/20160402-150820/backup.log: No such file
or directory
20160402-150822 : Get list of installed apps from device
buds: 77: buds: cannot create
/home/bruce/buds/backup/20160402-150820/clicks.list: Directory
nonexistent
tee: /home/bruce/buds/backup/20160402-150820/backup.log: No such file
or directory
20160402-150822 : Finished getting list of installed apps from device
tee: /home/bruce/buds/backup/20160402-150820/backup.log: No such file
or directory
20160402-150822 : Copying files from device
buds: 82: buds: cannot create
/home/bruce/buds/backup/20160402-150820/aosp_mako-003fd89d5c4d01ff.tgz:
Directory nonexistent
tee: /home/bruce/buds/backup/20160402-150820/backup.log: No such file
or directory
20160402-150822 : Copying files from device FAILED


If I run it as sudo sh buds 10.0.1.86 1234 I get permission denied.


On Sat, Apr 2, 2016 at 2:53 PM, Bruce Griffis <bruce.griffis@xxxxxxxxx>
wrote:

> Should authorized_keys be a directory on my phone, with the file
> id_rsa.pub in the directory?
> Copying over from my laptop to my phone, I seem to be copying the file
> id_rsa.pub over to my phone as .ssh/authorized_keys (with authorized_keys
> being my id_rsa.pub file, not a directory containing the file)
>
> On Sat, Apr 2, 2016 at 1:23 PM, Matthias Apitz <guru@xxxxxxxxxxx> wrote:
>
>> El sábado, 2 de abril de 2016 18:47:26 (CEST), Bruce Griffis <
>> bruce.griffis@xxxxxxxxx> escribió:
>>
>>> Sounds like a plan. I set up my ssh keys and can ssh to my phone using my
>>> passphrase, but buds fails. I must have messed up somewhere along the
>>> line.
>>>
>>>
>> If you need help, please show the errors of 'buds'.
>>
>>
>>
>>>> https://gurucubano.gitbooks.io/bq-aquaris-e-4-5-ubuntu-phone/content/es//chapter1.html
>>>>
>>>
>> sorry, I posted the Spanish URL, they are there as well in English, and
>> also for access via
>> USB tethering
>>
>>
>>
>>
>>
>> --
>> Sent from my Ubuntu phone
>> http://www.unixarea.de/
>>
>
>

Follow ups

References