Subversion Repositories sysadmin_scripts

Rev

Rev 24 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
24 rodolico 1
#! /bin/bash
2
 
3
# get stuff from clara/Tech and sync locally
153 rodolico 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
24 rodolico 5
# set permissions so we can all read them.
6
find /home/Tech/ -type d -exec chmod 777 \{\} \;
7
find /home/Tech/ -type f -exec chmod 666 \{\} \;