The goal of this gist is to setup waypipe to automically run locally on user login and remotely when you connect to it. In both cases, this is managed by systemd user session and assumes that is running. This took way too long to figure out, so I hope it helps someone (or me) in the future.
This file contains 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 | |
# Use this to send and receive files | |
# Dependencies: | |
# SSH-Keys setup for root users. I recommend using agent forwarding for this. | |
# mbuffer installed in /opt/local/bin/mbuffer. Adjust to reality. | |
# | |
# This script presumes: | |
# zsnapper is installed. Comment out the two lines where it is referenced if you don't use it | |
DATE=$(date +%Y%m%d%H%M) |