F5F Stay Refreshed Software Operating Systems Script pour sauvegarder des fichiers via FTP

Script pour sauvegarder des fichiers via FTP

Script pour sauvegarder des fichiers via FTP

W
WarH_400
Junior Member
4
06-10-2023, 10:37 AM
#1
W
WarH_400
06-10-2023, 10:37 AM #1

V
VirtualSkins
Member
60
06-12-2023, 11:10 PM
#2
You could begin by writing Python: import ftplib session = ftplib.FTP('server.address.com', 'USERNAME', 'PASSWORD') file = open('kitten.jpg', 'rb') # file to send session .storbinary('STOR kitten.jpg', file) # send the file file.close() # close file and FTP session quit() (taken from stackoverflow)
V
VirtualSkins
06-12-2023, 11:10 PM #2

You could begin by writing Python: import ftplib session = ftplib.FTP('server.address.com', 'USERNAME', 'PASSWORD') file = open('kitten.jpg', 'rb') # file to send session .storbinary('STOR kitten.jpg', file) # send the file file.close() # close file and FTP session quit() (taken from stackoverflow)

O
OOGDRAFUL
Junior Member
34
06-13-2023, 05:32 AM
#3
This isn't the Linux section. It's about winscp.
O
OOGDRAFUL
06-13-2023, 05:32 AM #3

This isn't the Linux section. It's about winscp.

H
husker53
Posting Freak
802
06-13-2023, 11:52 AM
#4
Many users rely on WinSCP for SSH file transfers? Jrock, consider exploring rsync. The right approach can simplify your workflow. For compression, you might package your files into an archive first and then send them. If you're new to bash, begin with scripting and schedule it via cron.daily or crontab.
H
husker53
06-13-2023, 11:52 AM #4

Many users rely on WinSCP for SSH file transfers? Jrock, consider exploring rsync. The right approach can simplify your workflow. For compression, you might package your files into an archive first and then send them. If you're new to bash, begin with scripting and schedule it via cron.daily or crontab.