Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'll point out that Ansible can do this just fine. Assuming you've got a non-root user set up in your node list file...

ansible [server] --sudo -m copy -a "src=filename dest=filename"

Other parts of Ansible might not be great (specifically, fully automated datacenter orchestration isn't possible without writing your own tools on top of Ansible; I use Salt for that), but it's really good for ad-hoc management without having to put additional infrastructure or daemons in place.



cool - thx for this.

also can use secure tmp files or rsync:

rsync --rsync-cmd='sudo rsync' -rpave ssh \ /some/dir/ \ me@remote:/some/dir/

(or, pulling backups for best security)

vault$ rsync --rsync-cmd='sudo rsync' -rpave ssh \ backup_user@dbserver:/var/ /backups/var/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: