Continuing file download ftp
Recently I need to move a server which have 450G of files. I set up ftp agent at new server and mget started to download files. But after checking I noticed that many of files copied but 150G of them is not.
I can't trust mget command since ftp program is very old. Instead I search for other solutions.
The I like NcFtp agents since it supports recursive copying over ftp. Note distributions dont generally include ncftp, you need distro specific executables.
ncftpget -d stdout -u myuser -p mypass -R 69.64.77.136 . /video/converted
this command
-d stout verboses to standart output,
-u -p connects using myuser and his/her mypass
-R with recursively since I want all contents of directory
from 69.64.77.136 host
. to current directory, creates converted directory and all files of remote server goes under it.
/video/converted from remote directory, because we use -R all files below
Similar
New technique to win olimpics
At the 1968 Olympics, Dick Fosbury took the athletics world by surprise with an unusual high-jump technique.
Printing mysql_error
This is a code snipped to print mysql error.
If there is no error mysql_error returns null, thus if evaluates false and there is no output.
multiple ON DUPLICATE KEY UPDATE
Here is an example of how to update multiple columns using values supplied in the INSERT statement. This assumes that column 'a' is the unique key.
multiple ON DUPLICATE KEY UPDATE
Here is an example of how to update multiple columns using values supplied in the INSERT statement. This assumes that column 'a' is the unique key.
php unlink recursive
The shortest recursive delete possible.
<?php
/**
* Delete a file or recursively delete a directory
*
* @param string $str Path to file or directory
*/

Comments
Post new comment