Subversion Repositories sysadmin_scripts

Rev

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

#! /bin/bash

# get stuff from clara/Tech and sync locally
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
# set permissions so we can all read them.
find /home/Tech/ -type d -exec chmod 777 \{\} \;
find /home/Tech/ -type f -exec chmod 666 \{\} \;