Copying hidden dirs

20 views
Skip to first unread message

Jon

unread,
Dec 1, 2010, 6:03:09 PM12/1/10
to slack users
Is a way to pass a param to slack to copy hidden dirs (.ssh) ?

Alan Sundell

unread,
Dec 1, 2010, 7:32:48 PM12/1/10
to slack...@googlegroups.com
slack doesn't do anything special to dirs that start with a dot, and should copy them just fine.   For example:

# cd
# mv .ssh .ssh-bak
# ls -ld ~/.ssh
ls: /root/.ssh: No such file or directory
# ls -ld /tmp/slacktest
ls: /tmp/slacktest: No such file or directory
# mkdir -p /tmp/slacktest/roles/testrole/files/root/.ssh
# slack -s /tmp/slacktest testrole
# ls -ld ~/.ssh
drwxr-xr-x 2 root root 4096 2010-12-01 16:24 /root/.ssh

The only exception to this is files excluded by the --cvs-exclude option that slack-sync passes to rsync.   See the rsync manpage for details on what this excludes.  However, that does not, as you can see above, affect dirs named ".ssh".

What exactly are you doing that is failing?  Are you sure that the directory exists in your SOURCE dir and isn't being excluded by some other process?

--Alan

On Wed, Dec 1, 2010 at 3:03 PM, Jon <jjc...@gmail.com> wrote:
Is a way to pass a param to slack to copy hidden dirs (.ssh) ?

--
You received this message because you are subscribed to the Google Groups "slack users" group.
To post to this group, send email to slack...@googlegroups.com.
To unsubscribe from this group, send email to slack-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/slack-users?hl=en.


Jon

unread,
Dec 2, 2010, 7:14:23 PM12/2/10
to slack users
Thanks Alan. I mistakenly believed that --cvs-exclude did not include
dirs that start with a dot. Apologies... needed to dig deeper into the
man page.
> > slack-users...@googlegroups.com<slack-users%2Bunsubscribe@googlegr oups.com>
> > .
Reply all
Reply to author
Forward
0 new messages