Score:1

Full system backup on a remote server with Borg

cn flag

I'm trying to do a full system backup on my remote server. I want to use Borg for this process because it has deduplication so it only copies files that are different and thus doesn't use as much space as a regular backup. Currently I'm using the command that follows:

sudo borg create --stats --progress --one-file-system --compression lz4 backup::Monday /run/media/archie/server/{bin,boot,etc,home,lib,lib64,opt,root,run,sbin,srv,tmp,usr}

This doesn't look like an optimal solution so how can I make it better? Or is there any other tool with deduplication for this job?

Michael Hampton avatar
cz flag
What is the problem you are having?
Enes Doğan avatar
cn flag
It looks messy and I don't think this is an optimal solution.
Michael Hampton avatar
cz flag
Huh? Where is the messy bit? Where is the not optimal bit?
Enes Doğan avatar
cn flag
{bin,boot,etc,home,lib,lib64...} bit is quite messy and if there were to be other files added this script won't back them up.
Score:1
cn flag

I've solved the problem with this script:

borg create --stats --progress --compress lz4 --one-file-system \
    --exclude $SERVER/dev \
    --exclude $SERVER/mnt \
    --exclude $SERVER/proc \
    --exclude $SERVER/run \
    --exclude $SERVER/swapfile \
    --exclude $SERVER/tmp \
    --exclude $SERVER/sys \
    --exclude $SERVER/lost+found \
    $BACKUP::$DAY $SERVER 
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.