Score:0

rsync / with files exclude and Includes

pn flag
rsync -avzRn --include-from=IncludeRSync --exclude-from=ExcludeRSync --delete-after $SERVER:/ backup/

i want to backup my server with this rsync command, so exclude all dirs and include just the ones i want

excludefile

var/www/html/nextcloud/data/
var/www/html/download/*
home/dam/jock/

includefile

var/www/html/***
home/dam/***
etc/apache2/sites-available/***
etc/nginx/sites-available/***
etc/modules/***
etc/systemd/system/gitea.service
sys/class/leds/working/delay_on
sys/class/leds/working/delay_off

but it backup all dirs in / any idea ?

thank you very much

I sit in a Tesla and translated this thread with Ai:

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.