Take backup of all phone files via sftp
From Notes_Wiki
Home > Android > Take backup of all phone files via sftp
If we take backup of phone via Samsung account or google account it is typically only application, settings, contacts, phone logs and messages. The biggest space consumer such as Whatsapp data, Phone photos and videos are not backed up. To backup entire phone storage recursively including Downloads, etc. via a Linux machine use:
- Install "SFTP Server s0 v1" Android application on phone
- Go to folder in local machine where you want to take entire backup
- Ensure that both phone and the Linux machine are on same wifi network
- Connect to the SFTP application on phone via:
- sftp -o Port=6789 root@<ip>
- where sftp password would be displayed on phone screen
- Copy entire internal storage of phone to current folder on machine via:
- cd /storage/emulated/0
- get -apR .