Standalone backup agents for Linux, Mac, AIX & Solaris workloads on-premises or in the public cloud
Post Reply
hxp
Influencer
Posts: 12
Liked: 2 times
Joined: Jul 14, 2021 5:03 pm
Full Name: m v
Contact:

File-level backup with "/" as directory does not include all directories

Post by hxp »

If you create a new file level backup job and include "/" as the sole directory, not all dirs under / are included in the backup.

Example system (v5.0.1.4493) with no symlinks:

Code: Select all

Backup job:
   ID: {b14ccf50-46d1-42c7-a8cf-eb71a413577f}
   Name: hostname01
   Repository ID: {cbcaf6cd-59ff-4948-8489-d61cd51bdfd1}
   Repository name: [reposerver] reponame
   Creation time: 2021-10-20 12:01:01
   Options:
      Compression: Lz4
      Max points: 14
      Block size: 1024 KB
      File system indexing is disabled
      No snapshot required
   Objects for backup:
      Include Directory: /
   Schedule:
      Every day
      At: 02:00
      
lsblk output:

Code: Select all

NAME             MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                8:0    0 223.6G  0 disk
├─sda1             8:1    0   487M  0 part /boot
├─sda2             8:2    0     1K  0 part
└─sda5             8:5    0 223.1G  0 part
  ├─vg00-root    254:0    0   3.8G  0 lvm  /
  ├─vg00-swap_1  254:1    0   1.9G  0 lvm  [SWAP]
  ├─vg00-tmp     254:2    0   976M  0 lvm  /tmp
  ├─vg00-var     254:3    0     3G  0 lvm  /var
  └─vg00-var_log 254:4    0   976M  0 lvm  /var/log

Code: Select all

ls -lah / |grep -v "\->"
drwxr-xr-x  18 root root 4.0K Oct 20 12:17 .
drwxr-xr-x  18 root root 4.0K Oct 20 12:17 ..
drwxr-xr-x   4 root root 1.0K Oct 20 12:17 boot
drwxr-xr-x  20 root root 3.5K Oct 20 12:14 dev
drwxr-xr-x  95 root root 4.0K Oct 20 12:17 etc
drwxr-xr-x   5 root root 4.0K Mar 17  2021 home
drwx------   2 root root  16K Mar 17  2021 lost+found
drwxr-xr-x   2 root root 4.0K Mar 17  2021 media
drwxr-xr-x   3 root root 4.0K Oct 20 12:14 mnt
drwxr-xr-x   6 root root 4.0K Oct 19 14:02 opt
dr-xr-xr-x 287 root root    0 Oct 18 14:26 proc
drwx------   5 root root 4.0K Oct 20 12:16 root
drwxr-xr-x  23 root root  820 Oct 20 12:17 run
drwxr-xr-x   2 root root 4.0K Mar 17  2021 srv
dr-xr-xr-x  13 root root    0 Oct 20 12:12 sys
drwxrwxrwt  13 root root 4.0K Oct 20 12:17 tmp
drwxr-xr-x  13 root root 4.0K Mar 17  2021 usr
drwxr-xr-x  12 root root 4.0K Mar 17  2021 var
After mounting the backup:

Code: Select all

ls -lah /mnt/backup |grep -v "\->"
drwxr-xr-x 10 root root 4.0K Sep 20 13:05 .
drwxr-xr-x  3 root root 4.0K Oct 20 12:14 ..
drwxr-xr-x 95 root root 4.0K Oct 19 16:29 etc
drwxr-xr-x  5 root root 4.0K Mar 17  2021 home
drwxr-xr-x  2 root root 4.0K Mar 17  2021 media
drwxr-xr-x  2 root root 4.0K Mar 17  2021 mnt
drwxr-xr-x  6 root root 4.0K Oct 19 14:02 opt
drwx------  5 root root 4.0K Oct 20 12:12 root
drwxr-xr-x  2 root root 4.0K Mar 17  2021 srv
drwxr-xr-x 13 root root 4.0K Mar 17  2021 usr
/boot and /var are missing. Is this intentional?
HannesK
Product Manager
Posts: 14314
Liked: 2887 times
Joined: Sep 01, 2014 11:46 am
Full Name: Hannes Kasparick
Location: Austria
Contact:

Re: File-level backup with "/" as directory does not include all directories

Post by HannesK » 2 people like this post

Hello,
sounds correct to me.

from the user guide
Tip: If you want to back up the root directory and specify the '/' (slash) character, Veeam Agent does not automatically include mount points in the backup scope. To include mount points, you need to specify paths to these mount points manually.
Best regards,
Hannes
hxp
Influencer
Posts: 12
Liked: 2 times
Joined: Jul 14, 2021 5:03 pm
Full Name: m v
Contact:

Re: File-level backup with "/" as directory does not include all directories

Post by hxp »

Thanks!
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 17 guests