From Newsgroup: comp.mobile.android
PSA: RoundSync for automatic Rclone syncing to desktops from Android
BACKGROUND:
Folks were having issues with FolderSync Pro on the Android ng, & when I
looked up what it does, I realized it's similar to what RoundSync does.
So I figured I'd hack out this UNTESTED tutorial for others to benefit. Normally I'd test all my tutorials, but SMB is a PITA for my situation.
RoundSync is a FOSS GUI for rclone that runs entirely on Android.
<
https://f-droid.org/packages/de.felixnuesse.extract/>
<
https://github.com/newhinton/Round-Sync>
It's billed as a "cloud file manager".
<
https://roundsync.com/>
As it interfaces with all the major cloud providers and protocols.
Because Rclone supports SMB natively, RoundSync inherits that power.
Apparently Rclone is a command line tool for Linux, Windows and macOS.
<
https://rclone.org/>
RoundSync supports dozens of protocols (SMB, SFTP, WebDAV, S3, Google
Drive, etc.), and, since it's FOSS, it's free & open-source with no ads.
It has a supposedly reliable background execution (if battery-whitelisted).
Below is a pseudo tutorial for how to set up RoundSync to automate syncs.
Bear in mind I can't test it because none of my machines have passwords. However, it should work with Windows and even way easier with Linux.
RoundSync + SMB Sync Setup (Step-by-Step Tutorial)
This tutorial shows how to:
1. Add an SMB share in RoundSync
2. Create an automated sync task
3. Use example credentials (user=foo, pass=bar)
Assumptions:
a. SMB server IP: 192.168.1.10
b. SMB share name: Shared
c. SMB username: foo
d. SMB password: bar
e. Local folder to sync: /storage/emulated/0/DCIM
f. Remote folder to sync: /Shared/PhoneBackup
g. Sync direction: Local -> Remote (upload only)
h. Sync schedule: Every 6 hours
1. Install RoundSync
Install RoundSync from F-Droid or GitHub.
Open the app.
2. Create an SMB Remote
a. Open RoundSync.
b. Tap "Remotes".
c. Tap "Add Remote".
d. Choose "SMB" as the remote type.
e. Fill in the fields:
Name: MySMB
Host: 192.168.1.10
Share: Shared
Username: foo
Password: bar
f. Leave "Port" blank unless your server uses a nonstandard port.
g. Tap "Save".
h. Tap "Test Connection" to confirm it works.
If the test succeeds, the SMB remote is ready.
3. Create a Sync Task
a. Go back to the main RoundSync screen.
b. Tap "Tasks".
c. Tap "Add Task".
Fill in the task details:
Task Name: DCIM_to_SMB
Local Folder:
/storage/emulated/0/DCIM
Remote Folder:
MySMB:/PhoneBackup
Sync Direction:
Local -> Remote (Upload only)
Options:
i. Overwrite: Enabled
ii. Delete removed files: Optional
iii. Dry run: Disabled
Tap "Save".
4. Set Up Automatic Scheduling
a. Open the task you just created.
b. Tap "Schedule".
c. Enable "Scheduled Sync".
d. Choose:
Interval: Every 6 hours
Run on WiFi only: Yes (recommended)
Run on battery saver: No
e. Save the schedule.
5. Allow Background Execution (Important)
Android aggressively kills background tasks unless you whitelist them.
a. Open Android Settings.
b. Go to Apps -> RoundSync -> Battery.
c. Set "Unrestricted" or "Allow background activity".
d. Disable battery optimization for RoundSync.
This ensures scheduled syncs actually run.
6. Test the Sync
a. Open the task.
b. Tap "Run Now".
c. Watch the log output.
d. Confirm files appear on the SMB share at:
\\192.168.1.10\Shared\PhoneBackup
If the test works, the automation should work too.
As far as I can tell without having actually tested this, RoundSync
will now automatically sync our chosen folder to our SMB share.
End of Android rsync to SMB share tutorial (v0p1)
As always, please correct where I err & add value where I omit
as the team always knows, collectively, what individuals don't.
--
Usenet is a team where every player tries to move the ball forward.
--- Synchronet 3.22a-Linux NewsLink 1.2