0
votes
3answers
202 views

Running a bash script each time a file is uploaded? [duplicate]

I have an FTP server (Debian) setup where users send JPG images. I need a process running on the background that every time a picture is sent via FTP a bash script is executed for generating ...
0
votes
0answers
515 views

LFTP mirror upload only non existing files to remote directory

Every 5 minutes some new files are downloaded via lftp to a local directory. I need to upload to another ftp only the non existing files. My script so far is: #! /bin/bash today=$(date +%Y%m%d) ...
2
votes
2answers
2k views

How to make tar save the archive on a remote machine using sftp or ftp?

I would like to backup some of my very important data on a remote machine. Currently I'm just saving it to my local machine by using this command: tar -cvjf ~/backups/Backup.tar.bz2 ~/importantfiles/* ...
2
votes
2answers
2k views

How to loop through each file in FTP directory using a bash script [duplicate]

Possible Duplicate: How to delete the oldest file over FTP using CURL? I need to connect to a remote server using a bash script and then delete all files within the directory that are older ...
0
votes
1answer
150 views

how will I make interactive login

I'm having trouble in making script with interactive login. I have made one but it doesn't ask the login, it automatically log in when i run the script. i just need the output like this: please ...
2
votes
3answers
4k views

Is there a way to write a script to do ftp login so I don't have to type things over and over again?

I am recently working extensively with a remote system via ftp connection, since the session time is so short that I have to re-login quite often when I finish my work on my local machine, so I need a ...