You are not logged in.
Pages: 1
I would like to run this command:
sudo rsync -avzp --progress --delete --exclude=/root --exclude=/var/tmp/kde* --exclude=/proc --exclude=/home --exclude=/media --exclude=/var/cache/pacman --exclude=/tmp/* --exclude=/lost+found --exclude=/var/backup --exclude=/mnt --exclude=/usr/man --exclude=/var/abs --exclude=/sys / /media/extra/backup/archbackup
But make a script so it asks me what the destination ("/media/extra/backup/archbackup" above) will be. Any help appreciated, thanks
Offline
You could make a bash script called "backup" and call it using "backup <directory>" and use
sudo rsync -avzp --progress --delete --exclude=/root --exclude=/var/tmp/kde* --exclude=/proc --exclude=/home --exclude=/media --exclude=/var/cache/pacman --exclude=/tmp/* --exclude=/lost+found --exclude=/var/backup --exclude=/mnt --exclude=/usr/man --exclude=/var/abs --exclude=/sys / $1
Offline
Other option would be to just make a new alias for that command + options.
Offline
Thank you, I added the alias to my .bashrc and now I can do:
archbackup /path/to/backup
and it works nice Thanks!!
Offline
Pages: 1