^p^‎ > ‎

rsycn FTP mega.nz rdiff-backup curlftpfs

opublikowane: 14 mar 2017, 01:46 przez Piotr Trochymiak   [ zaktualizowane 6 paź 2018, 02:16 ]

  1. sudo apt-get install curlftpfs

  2. Make sure the fuse module is loaded (modprobe fuse)

  3. sudo curlftpfs ftp.yourserver.com /path/to/ftp/folder/ -o user=username:password,allow_other

Note that there's no space after the last comma (it's not a typo!). If you're satisfied with that or don't want to make that every time, you can add it to your fstab (usually in /etc/fstab):

curlftpfs#user:password@ftp.yourserver.com /path/to/ftp/folder/ fuse auto,user,uid=1

rsync -avr -e ssh /home/dir user@example.com:/home/


#!/bin/bash    
HOST="your.ftp.host.dom"
USER="username"
PASS="password"
FTPURL="ftp://$USER:$PASS@$HOST"
LCD="/path/of/your/local/dir"
RCD="/path/of/your/remote/dir"
#DELETE="--delete"
lftp -c "set ftp:list-options -a;
open '$FTPURL';
lcd $LCD;
cd $RCD;
mirror --reverse \
       $DELETE \
       --verbose \
       --exclude-glob a-dir-to-exclude/ \
       --exclude-glob a-file-to-exclude \
       --exclude-glob a-file-group-to-exclude* \
       --exclude-glob other-files-to-exclude"


Bonus 

 https://github.com/megous/megatools
 http://www.matteomattei.com/backup-your-server-on-mega-co-nz-using-megatools/


Tools
=====

megareg      Register and verify a new mega account
megadf       Show your cloud storage space usage/quota
megals       List all remote files
megamkdir    Create remote directory
megarm       Remove remote file or directory
megamv       Move and rename remote files
megaput      Upload individual files
megaget      Download individual files
megadl       Download file from a "public" Mega link
             (doesn't require login)
megastream   Streaming download of a file
             (can be used to preview videos or music)
megasync     Upload or download a directory tree
megafs       Mount remote filesystem locally.

megals /Root/katalog_a/katalog_b/
megaget /Root/katalog/plik.tar.gz
megaput i megacopy

megacopy --local /root/katalog/plik.tar.gz --remote /Root/katalog_w_mgz/


lwl
megacopy --local /home/user/cz/ --remote /Root/cz/

http://www.nongnu.org/rdiff-backup/examples.html
http://blog.bestnet.pl/kopia-zapasowa-danych-z-rdiff-backup/
https://www.thomas-krenn.com/pl/wiki/Backup_z_rdiff-backup_w_Linuksie

Jeśli artykuł w czymś pomógł - kliknij w reklamę 
 Dzięki!

Comments