Fichiers de départ
This commit is contained in:
20
bin/oldies/test_recup_topisto_backups.sh
Executable file
20
bin/oldies/test_recup_topisto_backups.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
targetdir=/opt/backups/topisto.net
|
||||
tmpdir=/tmp/topisto.net
|
||||
rootdir=/tmp/download_topisto
|
||||
ladate=`date +%Y%m%d`
|
||||
param=`echo TTNsY2gxczNkM2sK | base64 -d`
|
||||
cmd="wget --quiet --user backup --password $param"
|
||||
backdir=$rootdir/$ladate
|
||||
salt=`date +%Y%m%d%H`
|
||||
|
||||
for fichier in Twitterbot.tar.bz2 www.tar.bz2
|
||||
do
|
||||
code=`echo -n /opt/backup/$fichier$salt | md5sum | awk '{ print $1 }' `
|
||||
echo Récupération de $fichier $code
|
||||
$cmd -O /tmp/$fichier https://www.topisto.net/backup/download.php?file=$code
|
||||
done
|
||||
|
||||
ls -lhtr /tmp/*.tar.bz2
|
||||
rm -f /tmp/*.tar.bz2
|
||||
|
||||
Reference in New Issue
Block a user