Skip to content

Instantly share code, notes, and snippets.

View Viktova's full-sized avatar
👅
Don't lick it, it's mine!!

Vik. Viktova

👅
Don't lick it, it's mine!!
View GitHub Profile
@Viktova
Viktova / mirror_remote_directory_to_local_directory
Created March 25, 2019 09:26 — forked from pixeline/mirror_remote_directory_to_local_directory
Bash script using lftp to mirror remote directory to local directory, thus keeping the local directory synchronized with the remote one.
#!/bin/sh
# @author: Alexandre Plennevaux
# @description: MIRROR DISTANT FOLDER TO LOCAL FOLDER VIA FTP
#
# FTP LOGIN
HOST='sftp://ftp.domain.com'
USER='ftpusername'
PASSWORD='ftppassword'
# DISTANT DIRECTORY