Skip to content

Instantly share code, notes, and snippets.

@64lines
Last active January 1, 2016 04:29
Show Gist options
  • Save 64lines/8092211 to your computer and use it in GitHub Desktop.
Save 64lines/8092211 to your computer and use it in GitHub Desktop.
[PERL] - Backup to current folder
#!/usr/bin/perl
$user = `whoami`;
$user =~ s/\n//g;
$date = `date +%d%m%Y`;
$date =~ s/\n//g;
system("tar -cvf \"".$user."_source_code_".$date.".tar\" *");
print "Backup finished\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment