Subj : Re: Automating file transfers using FTP (or similar)
To : Avon
From : bcw142
Date : Sat Feb 13 2021 08:20 pm
Sounds like your trying to do things the hard way, To transfer between systems
or backup stuff I use rsync. You were using scp which uses ssh as well.
#!/bin/bash
rsync -aPrvz "$1"
[email protected]:/mystic
as a bash script to copy argument $1 file to /mystic user pi at 10.0.0.5
If you look it up there are ways to handle passwords like RSYNC_PASSWORD
variable or --password-file and such.
--- Mystic BBS v1.12 A47 2021/02/01 (Raspberry Pi/32)
* Origin: Mystic Pi BBS bcw142.zapto.org (21:1/145)