Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 2 down vote accepted

My Cygwin is at home and I'm at the office, but you should make sure that the spaces in your directory names are properly escaped with a backslash when using the double-quotes for the wildcard.

share|improve this answer

Use of the ' quote means that the * won't be used for expansion.

Try 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/"
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.