Follow me
Categories
- Linux Desktop (5)
- Programming (23)
- Security (4)
- System Administration (38)
- Database (1)
- Email (4)
- Virtualization (2)
- VPN (2)
- Web (6)
- WEB Application (7)
Tag Archives: show_arg
Bash quote trap: why rsync exclude pattern not work
A friend wanted to sync all his files to a remote host, exluding the source files(those with suffix .c, .cpp, .h, .hpp). First I wrote this script #!/bin/bash ####sync.sh (version 1): sync files to remote host### SYNC_DST=’xxx@example.com::sample_project’ SYNC_OPT=’ –exclude=”*.[ch]” –exclude=”*.[ch]pp” … Continue reading