Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
FTP server contains files in one directory.
File names contain 4 character fixed prefix (PRE_ ) timestamp and some suffix
and have different extensions like
PRE_20140101153807.1233511.PDT-220-4362133316.ext
PRE_20140101253807.12e3511.PDT-220-5362133330-32.ext
PRE_2014010"253807.12e3511.PDT-220-78921333123.ex2
new files are added periodically to this directory, it may contain whole year files.
How to mirror this directory in Windows computer local hard drive ?
How to create some bat file which looks for new files added to this directory and downloads them
if nessecary ?
Is it possible to use windows ftp.exe application for this or other solution ?
ftp folder is acced from windows via OpenVPN
Andrus.
How much data are you talking about? While it may not be very elegant, and it could be vconsidered a waste of bandwidth, it may be feasible and reliable to connect to the FTP server, turn off prompting and doing an MGET of all the files.
Alternatively, you could write a short script to connect to the server and get a list of files, then iterate through the list and see which ones are not present locally and do GETs of them.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Assume I have this script running continually:
node myprogram.js > logfile.log
If I want to make the output dump to a new log file every day without stopping or restarting "node myprogram.js", what should I do?
For example, every day, I want to see the logs saved as 2015-12-01.log, 2015-12-02.log, 2015-12-03.log, etc, and not have the logs be dumped into a single file.
I would use logrotate its the pre-installed utility most linux OS's use for what you are talking about plus more, typical default settings would involve automatically compressing log files of a certain age and then eventually deleting the oldest log files.
The utility runs automatically once a day and performs log rotations as per a configuration you define.
I would prefer this question in server fault sister site. Nonetheless, there are many tools to use. Check out logrotate / rotatelogs.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am using wget in my windows PC to download files from an ftp server. But it downloads files into a folder where wget.exe is located. But i want it to download files to another folder.How it can be done?( i saw some links which i guess works only in linux).
#WINMAN please look into the following thread for your query, which might help you i hope
How to specify the location with wget?
−P prefix
−−directory−prefix=prefix
Set directory prefix to prefix. The directory prefix is the directory where all other files and subdirectories
will be saved to, i.e. the top of the retrieval tree. The default is . (the current directory).
Taken from the PDF, which comes with the docs from here: http://gnuwin32.sourceforge.net/packages/wget.htm
All other command-line arguments are in the pdf as well, so you should look into it.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have been trying to work out how this is possible to very little avail.
I'm on Mac OS X Lion and need to encrypt CD-R for Windows user.
All I want to do is encrypt a folder containing important website files to CD-R so that I can safely send the files via the post on a CD.
truecrypt is a freely-available, cross-platform solution that should work for you. It can be configured to encrypt directories or special block files, that are only accessible with a password.
Presumably you could put the Windows installation files on the CD-ROM as well, in order to make it easier for the recipient to access the data.
Another approach would be using GPG, to encrypt a .zip or .tar.gz file, or even zip itself using AES encryption.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Let's say I'm downloading a website to my computer via FTP. In my FTP client, I select all of the files and folders in the website's root folder and begin downloading them to an empty folder on my desktop. Halfway through the transfer, I'm interrupted by a prompt asking me whether I want to replace such-and-such file or folder. Why does this happen?
It's just something that I've noticed over the years. And I never know what the right answer is when I'm in the middle of transferring thousands of files. I usually say "yes", but then I doubt the integrity of the copy. It happens sporadically when I'm downloading or when I'm uploading. I assume it's not a bug in my FTP client (FileZilla), or else it's a very, very persistent bug.
Edit: OK, so my question was switftly and mercilessly closed as off topic. Where should I have posted it? Can it be moved there?
This may happen if you're using windows locally, and linux remotely.
Since linux allows for case sensitive filenames, and windows does not. Your FTP may have files like "Images.jpg" and "images.jpg" and "IMAGES.jpg", but all three of these are the same to windows, so you will be prompted to overwrite them when more than one of them is downloaded.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Is it possible, in a Windows batch file, to test if a certain drive letter was mounted by TrueCrypt?
I think this is not possible. You could get much information with wmic logicaldisk but nothing will indicate that Truecrypt assigned the drive letter.
As an Idea: (for anyone still finding this post)
You could make this C# Script over at the post #18021118 (which accesses truecrypt to retrive mount information) (there is also a VeraCrypt version over there.) ...
into a commandline tool to be used from your windows batch (added a simple example here: http://github.com/BananaAcid/VeraCrypt-Cmd - replace the get mounts file with the one from the readme within)
or use it directly with powershell
or with an additional binary wich executes scripts on the windows NET Framework without compiling: cs-script.