movedat Getting Files
To retrieve a file and save it in your current directory, add a local destination after the remote source. To download file1 and save it with the name file2:
movedat foo.bar.com:file1 file2
If you specify a directory as the local destination, the file will be saved in that directory using the same base name as from the server:
movedat foo.bar.com:file1 directory
When the local destination is a directory, you can request multiple downloads in a single command:
movedat foo.bar.com:file1 foo.bar.com:file2 other.server.com:file3 directory
As a short-cut, you can use "." as the directory to save into the current directory. You can also request multiple remote files using wild-card characters.
The server always uses forward slash '/' as its path delimter. But on Windows machines, local pathnames will use the backslash '\' character. So downloading a file using the Windows version of movedat could look like this:
movedat foo.bar.com:dirname/subdirname C:\mydir\mysubdir
The windows version of movedat also treats a single character followed by a colon as a local volume, rather than a server with a single character name.
The file will initially be saved with a name ending in ".TMP" during the download. On Windows systems, a ".CHK" companion file will also be created. If the download is interrupted, do not rename these files as doing so may prevent the download from being resumed. The correct filename will be assigned when the download completes successfully.
To disable resumeable downloads and write directly to the named destination, use the "-c" command line option, or the "NoCheck" configuration variable. This is especially useful if you wish to use a pipe, socket, or other special file as the destination.
When you begin a Get operation, the destination directory will be searched for files or partial downloads with the same name. If a useable partial download is found, you may choose to Resume it or delete the existing file immediately. If a conflicting file that can't be resumed is found, you will be asked if you want to delete the old file.
Once a file has been successfully downloaded, movedat will attempt to set the modification date, access rights, ownership, and group id of the downloaded file to match those of the remote file. Whether or not this is successful will depend on the server version, operating systems, and movedat's own access rights.