This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Batch use (old) | |
| mirror from server | |
| <p>bash.exe ./lftp.exe sftp://user:password@site:port -e "set sftp:connect-program './ssh.exe'; mirror --verbose --use-pget-n=8 -c /remote/path /cygdrive/driveletter/folder; quit"</p> | |
| mirror to server | |
| <p> bash.exe ./lftp.exe sftp://user:password@site:port -e "set sftp:connect-program './ssh.exe'; mirror -R --verbose --use-pget-n=8 -c /cygdrive/driveletter/folder /remote/path; quit" </p> | |
| ### Nwgat LFTP Mirror Script (only SFTP for now) | |
| *Dont work with 4.6.2 or later atm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set sftp:auto-confirm yes | |
| set sftp:connect-program 'ssh' | |
| open sftp://user:password@site:port | |
| mirror --verbose --use-pget-n=8 -c /remote/path /cygdrive/driveletter/folder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set sftp:auto-confirm yes | |
| set sftp:connect-program 'ssh' | |
| open sftp://user:password@site:port | |
| mirror -R --verbose --use-pget-n=8 -c /cygdrive/driveletter/folder /remote/path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set ssl:verify-certificate no | |
| set sftp:auto-confirm yes | |
| set sftp:connect-program 'ssh.exe' | |
| open sftp://user:password@site:port | |
| mirror --verbose --use-pget-n=8 -c /remote/path /cygdrive/driveletter/folder; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set sftp:auto-confirm "yes" | |
| set sftp:connect-program "ssh -v -a -x -i D:\path\to\key" | |
| open sftp://user:password@site:port | |
| mirror -R --verbose --use-pget-n=8 -c /cygdrive/driveletter/folder /remote/path; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $packageName = 's3put' | |
| $url = 'https://github.com/surma/s3put/releases/download/2.1.1/s3put_windows_386' | |
| $url64 = 'https://github.com/surma/s3put/releases/download/2.1.1/s3put_windows_amd64' | |
| $installDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" | |
| $exeDir = "$installDir\s3put.exe" | |
| Get-ChocolateyWebFile $packageName $exeDir $url $url64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $packageName = 'lftp' | |
| $url = 'https://lftp.nwgat.ninja/lftp-4.6.5/lftp-4.6.5.win32-openssl.zip' | |
| $url64 = 'https://lftp.nwgat.ninja/lftp-4.6.5/lftp-4.6.5.win64-openssl.zip' | |
| $installDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" | |
| Install-ChocolateyZipPackage "$packageName" "$url" "$installDir" "$url64" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| !/bin/bash | |
| # Freki S3 Backup Script | |
| # Purpose = Backup of Important Data to Amazon S3/Glacier | |
| # Rewrite by nwgat.ninja, orginal by Hafiz Haider | |
| # Required packages | |
| # curl (pushover) https://curl.haxx.se/ | |
| # s3put (s3/gcs) https://github.com/surma/s3put/releases | |
| # Pushover Settings | |
| pusht=0000 # token |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Makes sure we exit if flock fails. | |
| set -e | |
| ( | |
| # Wait for lock on /var/lftp.lock (fd 200) for 10 seconds | |
| flock -n 200 | |
| # Do stuff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/sh | |
| # /etc/init.d/gmediarender | |
| # | |
| # Some things that run always | |
| touch /var/lock/gmediarender | |
| # Carry out specific functions when asked to by the system | |
| case "$1" in | |
| start) |