specimen

10 Oct, 2007

Where's the mount?

Posted by pwestbro 22:25 | Permalink Permalink | Comments Comments (3) | Trackback Trackbacks (0) | Computer

Nautilus makes it very easy to mount file servers. When you select "Connect to Server..." and enter the mount information, the mount appears in the UI as a mounted disk.

I would like to be able to use rsync to copy files to and from the mount. The problem is that I don't know where the actual mountpoint is.

If anyone knows where Nautilus mounts servers, please let me know.

Technorati tags: , , , ,

10 Oct, 2007

copy files with extension

Posted by pwestbro 16:50 | Permalink Permalink | Comments Comments (1) | Trackback Trackbacks (0) | Computer

I was looking for a command to copy all of the files with a given extension from one directory to another.  I know I could pipe the output of find to xargs where cp would be run, but you have to take special care to escape the paths. 

 

Here is a way to do the same thing with rsync:

rsync -azvE -r -m --include "*/" --include "*.mp3" --exclude "*" --verbose --progress /source/path/ /destination/path/

Technorati tags: , , , ,