X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/e50e82ab40045e8aae0c27f9e39c4f6b2d22b3f7..9a7532e516a6153ba6c59a59c329345509536a98:/support/mnt-excl diff --git a/support/mnt-excl b/support/mnt-excl index 5514d96d..c6df5866 100755 --- a/support/mnt-excl +++ b/support/mnt-excl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl # This script takes a command-line arg of a source directory # that will be passed to rsync, and generates a set of excludes # that will exclude all mount points from the list. This is @@ -25,6 +25,7 @@ # awk '{print $2}' /proc/mounts | rsync -f 'merge,/- -' host:/dir /dest/ use strict; +use warnings; use Cwd 'abs_path'; my $file = '/proc/mounts';