Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- name="$(date +%d.%m.%Y).tar.gz"
- user=`whoami`
- host=localhost
- path="/home/$user"
- IFS=$'\n'
- tar -czf $name `find ~ -type f -mtime 0`
- scp $name $user@$host:"$path"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement