27 lines
604 B
Plaintext
27 lines
604 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
buuser="buuser"
|
||
|
remhost="files.lan"
|
||
|
rembase="/volumeUSB1/usbshare/rsync-backups"
|
||
|
|
||
|
hosts=$(ssh ${buuser}@${remhost} ls -d ${rembase}/* | cut -d'/' -f5 | grep "_backups")
|
||
|
|
||
|
for i in $hosts
|
||
|
do
|
||
|
backups=$(ssh ${buuser}@${remhost} ls -d ${rembase}/${i}/* | cut -d'/' -f6)
|
||
|
for j in $backups
|
||
|
do
|
||
|
budst="rsync://${buuser}@${remhost}//${rembase}/${i}/${j}"
|
||
|
|
||
|
echo "Backup: ${i}/${j}"
|
||
|
echo ">>>>>>>>>>>>>=============<<<<<<<<<<<<<"
|
||
|
echo ""
|
||
|
|
||
|
/usr/bin/duplicity --no-encryption collection-status ${budst}
|
||
|
|
||
|
echo ""
|
||
|
done
|
||
|
cd ..
|
||
|
done
|
||
|
|