Difficulties to restore the multimedia folder on clean install

My YunoHost server

Hardware: Dell T330 / dell optiplex 3020
YunoHost version: 11.2.5 / 11.2.5

Description of my issue

I try to migrate form yunohost 11.2.5 on dell optiplex 3020 to a LXC container (Proxmox) on dell T330

I installed Borg on the old server.

I installed Borg server on the new server.

I successfully manage to restore yunohost conf and yunohost data.

I now try to restore nextcloud app, but I got this error during restoration :

chown: changing ownership of '/home/yunohost.multimedia/laurent/Music': Invalid argument
chown: changing ownership of '/home/yunohost.multimedia/laurent/Picture': Invalid argument
chown: changing ownership of '/home/yunohost.multimedia/laurent/Share': Invalid argument
chown: changing ownership of '/home/yunohost.multimedia/laurent/Video': Invalid argument
chown: changing ownership of '/home/yunohost.multimedia/laurent/eBook': Invalid argument
chown: changing ownership of '/home/yunohost.multimedia/laurent': Invalid argument

i I run :

chown: changing ownership of '/home/yunohost.multimedia/laurent/Music': Invalid argument

I got :

chown: changing ownership of '/home/yunohost.multimedia/laurent/Picture': Invalid argument
chown: changing ownership of '/home/yunohost.multimedia/laurent/Share': Invalid argument
chown: changing ownership of '/home/yunohost.multimedia/laurent/Video': Invalid argument
chown: changing ownership of '/home/yunohost.multimedia/laurent/eBook': Invalid argument
chown: changing ownership of '/home/yunohost.multimedia/laurent': Invalid argument

I got the same results on the old a new servers :

cut -d: -f1 /etc/passwd
root
daemon
bin
sys
sync
games
man
lp
mail
news
uucp
proxy
www-data
backup
list
irc
gnats
nobody
_apt
postfix
sshd
systemd-network
systemd-resolve
messagebus
systemd-timesync
systemd-coredump
avahi
openldap
nslcd
unscd
dnsmasq
policyd-spf
dovecot
dovenull
_rspamd
postsrsd
redis
mdns
mysql
ntp
metronome
vmail
borg

but

compgen -u
root
daemon
bin
sys
sync
games
man
lp
mail
news
uucp
proxy
www-data
backup
list
irc
gnats
nobody
systemd-timesync
systemd-network
systemd-resolve
_apt
messagebus
sshd
mysql
avahi
postsrsd
unscd
nslcd
dnsmasq
openldap
redis
postfix
_rspamd
ntp
glances
policyd-spf
metronome
dovecot
dovenull
vmail
opensondage
influxdb
grafana
postgres
webapp1
ffsync
webapp2
etherpad_mypads
webapp_legoux.net_site
webapp_legoux.net_blog
ihatemoney
qr
systemd-coredump
shaarli
mdns
roundcube
strut
turnserver
monitorix
cool
gemserv
my_capsule
coturn
nextcloud
shellinabox
borg
laurent

I don’t know how to solve this issue. I could try to exclude those directories from my backup, but I also try to have the cleanest install to be able to use in the future the archive and restore options from yunohost.

Thanks a lot for you ideas !

For any reason, chown -r user failed when restoring first data and then nexcloud app.

I did as alternative order:

1- restore conf

sudo yunohost backup restore conf --system

2- restore nexcloud app

sudo yunohost backup restore nextcloud --app

3- restore system data

sudo yunohost backup restore data --system

then it works, issue is solved (even if I don’t understand why).

I hope the answer may help others, as I often read to restore system (conf, data) and then apps.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.