Quantcast
Browsing latest articles
Browse All 11 View Live

Image may be NSFW.
Clik here to view.

Backup sda5 partition to ftp ( using pipes and gziped backup )

$ dd if=/dev/sda5 bs=2048 conv=noerror,sync | gzip -fc | lftp -u user,passwd domain.tld -e "put /dev/stdin -o backup-$(date +%Y%m%d%H%M).gz; quit" View this command to comment, vote or add to...

View Article


Image may be NSFW.
Clik here to view.

Mirror a directory structure from websites with an Apache-generated file indexes

$ lftp -e "mirror -c" http://example.com/foobar/ wget/curl/friends are not good with mirroring files off websites, especially those with Apache-generated directory listings. These tools endlessly waste...

View Article


Image may be NSFW.
Clik here to view.

mirrors directory to a ftp server

$ lftp -ulogin,passwd -e "mirror --reverse /my/from/dir/ /ftp/target/dir/" ftp.server.xx http://lftp.yar.ru/ View this command to comment, vote or add to favourites View all commands by cp Diff your...

View Article

Image may be NSFW.
Clik here to view.

Multi-segment directory downloading with lftp

$ lftp -u user,pass ftp://site.com/ -e 'mirror -c --parallel=3 --use-pget-n=5 "Some folder"' It works best if you first login and then do the fetch: lftp -u user,pass ftp://site.com/ mirror -c...

View Article

Image may be NSFW.
Clik here to view.

Multi-segment file downloading with lftp

$ lftp -u user,pass ftp://site.com -e 'pget -c -n 6 file' This is for files only, for directories 'mirror' has to be used. View this command to comment, vote or add to favourites View all commands by...

View Article


Image may be NSFW.
Clik here to view.

Internet Speed Test

$ lftp -e 'pget http://address_to_file; exit; ' Make sure the file you use in your test is > 50mb to get good results. Dependancies: sudo apt-get install lftp iperf View this command to comment,...

View Article

Image may be NSFW.
Clik here to view.

Use lftp to multi-threaded download files from websites

$ lftp -c "pget -n 10 http://example.com/foo.bar" View this command to comment, vote or add to favourites View all commands by specter Diff your entire server config at ScriptRock.com

View Article

Image may be NSFW.
Clik here to view.

Gets directory and files tree listing from a FTP-server

$ lftp -u<<credentials>> <<server>> -e "du -a;exit" > server-listing.txt Creates a file with contents like `du -a`, only it is remote server filesystem hierarchy. Very...

View Article


Image may be NSFW.
Clik here to view.

Fastest segmented parallel sync of a remote directory over ssh

$ lftp -u user,pwd -e "set sftp:connect-program 'ssh -a -x -T -c arcfour -o Compression=no'; mirror -v -c --loop --use-pget-n=3 -P 2 /remote/dir/ /local/dir/; quit" sftp://remotehost:22 Mirror a remote...

View Article


Image may be NSFW.
Clik here to view.

lftp backup from server to dev for a drupal site

$ lftp -u user,pass -e "set ftp:ssl-allow false; mirror --exclude settings.php --exclude .htaccess serverdir devdir" serverhost sets the option set ftp:ssl-allow false, excludes some files I don't want...

View Article

Image may be NSFW.
Clik here to view.

Faciliate the work for lftp ('all' is needed if you wanna use it with...

$ all="$(echo -e $*|awk '{for(i=3;i<=NF;++i)print $i}'|xargs)"; lftp -e open <HOSTNAME> -p <PORT> -u <USER>:<PASSWORD> -e "$all;exit" Add this to a script and you can do...

View Article
Browsing latest articles
Browse All 11 View Live