joedicastro / lftp-mirror Goto Github PK
View Code? Open in Web Editor NEWIt's a python script that allow us to synchronize a directory on a remote server with a local directory via FTP in both directions.
License: GNU General Public License v3.0
It's a python script that allow us to synchronize a directory on a remote server with a local directory via FTP in both directions.
License: GNU General Public License v3.0
Is it possible to parallel mirror with more than one slot? Like I know lftp allow to use more than one to upload a directory,, Is that option available ?
When ever I try to run this script this is the error that I get.
Traceback (most recent call last):
File "lftp_mirror.py", line 759, in
main()
File "lftp_mirror.py", line 744, in main
cfg.get(sect, 'options')))
File "lftp_mirror.py", line 686, in parse_parms
base64.b64decode(parms[5]),
File "/usr/lib/python2.7/base64.py", line 76, in b64decode
raise TypeError(msg)
TypeError: Incorrect padding
use this password base64 == has a problem ,affer decode will become %3D%3D
== after encode is == and affer decode become %3D%3D
urllib.unquote(base64.b64decode(parms[5])) add this solve the problem
The notification(message) method doesn't catch exceptions thrown by the pynotify module
lftp-mirror should handle that gracefully and either ignore the failing/missing desktop notifications, i.e. simply try/except pass for the show() call, or try to catch them and display a dialog instead.
trace:
Traceback (most recent call last):
File "/home/salon/lftp/src/lftp_mirror.py", line 750, in
main()
File "/home/salon/lftp/src/lftp_mirror.py", line 738, in main
mirror(args, log)
File "/home/salon/lftp/src/lftp_mirror.py", line 616, in mirror
notify('Mirroring with {0}...'.format(args.site), 'sync')
File "/home/salon/lftp/src/lftp_mirror.py", line 541, in notify
note.show()
gio.Error: GDBus.Error:org.freedesktop.Notifications.MaxNotificationsExceeded: Exceeded maximum number of notifications
It's not possible use lftp-mirror without X
TypeError: Notify.Notification.set_icon_from_pixbuf() argument 1 must be gtk.gdk.Pixbuf, not None
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.