About 5 minutes ago I figured out how to redirect the output of a remotely executed script into a file so I can fix my rsnapshot backups.
I did something like this
/usr/bin/ssh root@oflameo.com 'bash -s' < /usr/local/bin/rsnapshot-utils/dump_dpkg.sh > dpkg_selections
Is there anywhere I should have read about this so I wouldn't have had to do so much experimentation to figure this out?
Is there anyway I can mimic the effects of this redirection strategy in ansible?
[link][1 comment]