- Standard Rename Actions:
- MOVE
- COPY (i.e. copy-on-write clone if possible, or copy if necessary)
- SYMLINK
- HARDLINK
- KEEPLINK (i.e. move file and create a symlink to the new path in its place)
- DUPLICATE (i.e. hardlink if possible, or copy-on-write clone if possible, or copy if necessary)
- CLONE (i.e. copy-on-write clone)
- TEST (i.e. do nothing)
Code: Select all
--action DUPLICATE
- Shell Actions:
Pass an executable as --action parameter. The source path will be passed as first argument, and the destination path will be passed as second argument./usr/local/bin/scp-to-serverCode: Select all
--action /usr/local/bin/scp-to-server
Code: Select all
#!/bin/sh -xu scp -v "$1" "[email protected]:/volume1/files/$2"
- Groovy Actions:
Pass a Groovy Closure as --action parameter.Code: Select all
--action '{ a, b -> println "$a => $b" }'