shell script backup distant
#Rajouter file dan tar
tar -rvf /emplacement_archive/archive.tar /emplacement_fichier/fichier_a_ajouter
shell script backup distant
#Rajouter file dan tar
tar -rvf /emplacement_archive/archive.tar /emplacement_fichier/fichier_a_ajouter
shell script backup distant
#!/bin/sh
USERNAME="user"
PASSWORD="pass"
SERVER="123.456.78.90"
DATE="`date +%Y-%m-%d`"
BACKUPDIR="/${DATE}/accounts/"
find . -type f -name "*.tar.gz" -exec basename {} \; |
while read filename ; do
ftp -inv $SERVER >> /tmp/My_ftp_backup.log <<EOF
user $USERNAME $PASSWORD
cd $BACKUPDIR
binary
put $filename
EOF
echo -e "$date copied $filename\n" >> /tmp/My_ftp_backup.log
done
shell script backup distant
#regarder le contenu d'une archive.tar sans en extraire
tar -tf /emplacement_archive/archive.tar
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us