Interested in advertising on Derpibooru? Click here for information!
Help fund the $15 daily operational cost of Derpibooru - support us financially!
Description
I had to factory reset my computer and lost everything because im an idiot that doesn’t know how to back shit up and i had to get a fresh sai and make all the brushes i used to use again from scratch and now im testing shit
LOL that’s funny I think
most people just use the thing that makes the usb appear automatically on their desktop, and then drag the folder over when they want to save it. I just like making text files I can set to run and forget about in the background.
Oh my gosh
I’m just messing around. usb is too dangerous to be easy.
I’m technically dumb so all that went way over my head but thanks so much for the tip
run as root in crontab:
ACCOUNT=rweasel
USBDEV=/dev/sdc1
mount -o uid=
id -u $ACCOUNT$USBDEV /mnt/usb
su $ACCOUNT <<EOT
mkdir /mnt/usb/mypaint
rsync -aPv ~/.local/share/mypaint/ /mnt/usb/mypaint/share/
rsync -aPv ~/.config/mypaint/ /mnt/usb/mypaint/config/
EOT
umount /mnt/usb
to restore (as root):
ACCOUNT=rweasel
USBDEV=/dev/sdc1
mount -o uid=
id -u $ACCOUNT$USBDEV /mnt/usb
su $ACCOUNT <<EOT
mkdir /mnt/usb/mypaint
rsync -aPv /mnt/usb/mypaint/share/ ~/.local/share/mypaint/
rsync -aPv /mnt/usb/mypaint/config/ ~/.config/mypaint/
EOT
umount /mnt/usb
dunno about sai, but that’d work for mypaint. untested b/c I don’t even have any custom brushes b/c I suck
if you have a VPS, you can just
setup:
VPS=rweasel@123.123.123.123
DIR="~/backups/mypaint/"
ssh $VPS <<EOT
mkdir -p $DIR
EOT
in a crontab:
VPS=rweasel@123.123.123.123
DIR="~/backups/mypaint/"
rsync -aPv ~/.local/share/mypaint/ $VPS:$DIR/share/
rsync -aPv ~/.config/mypaint/ $VPS:$DIR/config/
to restore:
VPS=rweasel@123.123.123.123
DIR="~/backups/mypaint/"
rsync -aPv $VPS:$DIR/share/ ~/.local/share/mypaint/
rsync -aPv $VPS:$DIR/config/ ~/.config/mypaint/