Skip to main content

rsync issue

Comments

2 comments

  • rbairwell
    I assume you are doing something like rsync -avz -e ssh /home/username/* account@example.com:/home/newusername/
    ? If so, try removing the asterisk ( rsync -avz -e ssh /home/username/ account@example.com:/home/newusername/
    as then the Linux globbing system will take into account hidden dotfiles). (For those new to rsync, the flags are: -a = archive mode (copy symlinks as symlinks, copy file permissions, dates etc), -v = verbose (show what is happening), -z compress/zip during transfer, "-e ssh" use ssh as a transport mechanism (I think since 2004 that's been "the default", but I always use it out of habit). The first filepath is a Linux "globable" path of files (hence why supplying the * means Linux "expands" the file list before rsync sees it: and hence why dotfiles/hidden files are missing in this case: not using the asterisk wildcard means rsync will just process the directory/folder), the second filepath/location is where the files are going to.
    0
  • hmaddy
    thanks for your reply, rsync done with *. so its ignored .files.
    0

Please sign in to leave a comment.