File: 09-test-sync.sh

package info (click to toggle)
megatools 1.11.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 740 kB
  • sloc: ansic: 7,279; sh: 135; makefile: 3
file content (14 lines) | stat: -rwxr-xr-x 357 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
source ./config

megasync --help

# dl
rm -rf TestDir
megasync $ROPTS --download --remote /Root/TestDir --local TestDir -n
megasync $OPTS --download --remote /Root/TestDir --local TestDir

# ul
megamkdir $OPTS /Root/TestDir/Sub
megasync $OPTS --remote /Root/TestDir/Sub --local TestDir -n
megasync $OPTS --remote /Root/TestDir/Sub --local TestDir