add new scripts
This commit is contained in:
parent
cf648fa572
commit
1d806bdc74
8 changed files with 1324 additions and 661 deletions
3
Readme.md
Normal file
3
Readme.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
29 0 \* /bin/bash /opt/scripts/make-backup.sh
|
||||||
|
|
||||||
|
su www-data -s /bin/bash -c "php occ files:scan --path /srieger/files/Backups/Server"
|
8
backup-server-files.sh
Normal file
8
backup-server-files.sh
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# backup
|
||||||
|
for wort in $(ls -d */ | cut -f1 -d'/'); do echo $wort; tar -pczf ${wort}.tar.gz ${wort}; done
|
||||||
|
|
||||||
|
# transfer data (SSH)
|
||||||
|
scp -P 1022 *tar.gz simono41@65.108.123.253:
|
||||||
|
|
||||||
|
# restore
|
||||||
|
for wort in *.tar.gz; do echo $wort; tar -pxzf $wort; done
|
2
connect_adb-bridge.sh
Normal file
2
connect_adb-bridge.sh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
adb pair 192.168.137.158:37983
|
||||||
|
adb connect 192.168.137.158:42261
|
4
create_ssh_adb-bridge.sh
Normal file
4
create_ssh_adb-bridge.sh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
adb pair 192.168.137.158:37983
|
||||||
|
adb connect 192.168.137.158:42261
|
||||||
|
adb devices
|
||||||
|
ssh -R 42261:spectreos.de:42261 -p1024
|
1
install_app_and_debug.sh
Normal file
1
install_app_and_debug.sh
Normal file
|
@ -0,0 +1 @@
|
||||||
|
adb install app-debug.apk && adb shell am start -n de.spectreos.battlestar/de.spectreos.battlestar.MainActivity && sleep 2 && adb logcat --pid=$(adb shell pidof -s de.spectreos.battlestar)
|
13
make-backup.sh
Normal file
13
make-backup.sh
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
BACKUPTIME=`date +%b-%d-%y` #get the current date
|
||||||
|
|
||||||
|
DESTINATION=/var/www/html/data/sebastian/files/backups/backup-documents-$BACKUPTIME.tar.gz #create a backup file using the current date in it's name
|
||||||
|
|
||||||
|
SOURCEFOLDER=/var/www/html/data/sebastian/files/Documents #the folder that contains the files that we want to backup
|
||||||
|
|
||||||
|
tar -cpzf $DESTINATION $SOURCEFOLDER #create the backup
|
||||||
|
|
||||||
|
su www-data -s /bin/bash -c "php occ files:scan --path /sebastian/"
|
||||||
|
|
||||||
|
chown -cRv www-data:www-data data/sebastian/files/backups
|
1
ocr.sh
Normal file
1
ocr.sh
Normal file
|
@ -0,0 +1 @@
|
||||||
|
ocrmypdf -l deu --force-ocr $1 $1
|
1705
openvpn-install.sh
1705
openvpn-install.sh
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue