Line 1... |
Line 1... |
1 |
#! /bin/bash
|
1 |
#! /bin/bash
|
2 |
|
2 |
|
3 |
# get stuff from clara/Tech and sync locally
|
3 |
# get stuff from clara/Tech and sync locally
|
4 |
owncloudcmd --trust -p 'DD-214827cx' -u 'dailydata' --non-interactive /home/Tech https://simon.dailydata.net/owncloud/remote.php/webdav/Documents/Tech/ &> /tmp/owncloudsync.log
|
4 |
owncloudcmd --trust -p 'YOUR_PASSWORD' -u 'USERNAME' --non-interactive /local/path/to/sync https://nextcloud.example.com/owncloud/remote.php/webdav/Documents/Tech/ &> /tmp/owncloudsync.log
|
5 |
# set permissions so we can all read them.
|
5 |
# set permissions so we can all read them.
|
6 |
find /home/Tech/ -type d -exec chmod 777 \{\} \;
|
6 |
find /home/Tech/ -type d -exec chmod 777 \{\} \;
|
7 |
find /home/Tech/ -type f -exec chmod 666 \{\} \;
|
7 |
find /home/Tech/ -type f -exec chmod 666 \{\} \;
|