Rsync and wildcards
Posted
by
Jay White
on Server Fault
See other posts from Server Fault
or by Jay White
Published on 2011-03-20T19:03:30Z
Indexed on
2011/03/20
19:23 UTC
Read the original article
Hit count: 458
I am trying to back up both the "Last Session" and "Current Session" files for Google Chrome in one command, but using a wildcard doesn't seem to work.
I am trying with the following command
rsync -e "ssh -i new.key" -r --verbose -tz --stats --progress --delete '/cygdrive/c/Users/jay/AppData/Local/Google/Chrome/User Data/Default/*Session' user@host:"/chrome\ sessions/"
and get the following error
rsync: link_stat "/cygdrive/c/Users/jay/AppData/Local/Google/Chrome/User Data/Default/*Session" failed: No such file or directory (2)
What am I doing wrong?
© Server Fault or respective owner