Skip to content

Commit

Permalink
dotfiles_backup: adjust paths
Browse files Browse the repository at this point in the history
  • Loading branch information
samyk committed Jan 16, 2024
1 parent 80f15cc commit 5296f39
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions dotfiles_backup
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
# backup dot files to dropbox
# -samy kamkar

use y;;;

# file containing files/dirs to ignore
my $IGNORE_FILE = ".dotignore";
my $IGNORE_FILE = "/Users/samy/.dotignore";

# files to save in home dir
my $SAVE_FILES = ".*";
Expand All @@ -23,6 +21,8 @@ my @RSYNC_ARGS = grep { length } split /\s+/, qq/
/;

use strict;
use lib "/Users/samy/b";
use y;;;

# do this in home
chdir($ENV{HOME});
Expand All @@ -31,4 +31,7 @@ chdir($ENV{HOME});
my @SAVE = grep { !/^\.\.?$/ } glob($SAVE_FILES);

mkdir($SAVE_TO);
print run($RSYNC, @RSYNC_ARGS, @SAVE, $SAVE_TO);
print run($RSYNC, @RSYNC_ARGS, @SAVE, $SAVE_TO);

# xxx don't back these up in the first place
#unlink(map { "$SAVE_TO/$_" } @RM);

0 comments on commit 5296f39

Please sign in to comment.