Backups on V20

Status
Not open for further replies.

Oliver Broad

Free User
Joined
Feb 24, 2020
Messages
119
Reaction score
12
Is it possible to backup to a USB drive? Obviously it isn't as good as a proper remote backup but it is better than just backing up to the hard drive and also very convenient.

As far as I can tell a USB drive doesn't get auto-mounted. I wonder if USB is disabled?
 
For Linux? Sure
1) mount the drive
2) in 3CX, change location to /mnt/<yourdrive> in the local folder selection
 
  • Like
Reactions: Nathan@Voxtelesys
Unless size is a problem, the easiest thing you could do is backup locally and download to USB through Admin Console in a web browser.

Otherwise, it should be like mounting any disk in Linux. (Assuming you are not using Windows)

Below is a rough idea of what that would look like.

Find the drive name:
lsblk, before and after you plug the USB in - so you know what changed.

Code:
sda      8:0    0   32G  0 disk
├─sda1   8:1    0   31G  0 part /
├─sda2   8:2    0    1K  0 part
└─sda5   8:5    0  975M  0 part
sdb           8:0    1  14.5G  0 disk
├─sdb1        8:1    1   2.6G  0 part
└─sdb2        8:2    1   6.9M  0 part

sdb likely is your USB if you only have one disk.

Create a mount point:

mkdir /mnt/USB

mount /dev/sdb1 /mnt/USB

lsblk should now show the mount point next to it.

Code:
├─sdb1        8:1    1   2.6G  0 part /mnt/USB

Under the Admin Console > Backup > Location, you should be able to select /mnt/USB as your "Folder/Path".

When you are done,

umount /mnt/USB

Your mileage may vary, I have not tried this, and I may be missing a step I am not thinking of.

I hope this helps, let us know how it goes.
 
  • Like
Reactions: Alphabetic
Thanks, spot on.

I spoke too soon, the dangers of messing around as root: I need to give user "phonesystem" rights to access it. I think I can do it by setting the uid and gid of the mount but it is more complicated than I thought

Added this to fstab: /dev/sdb1 /mnt/USB vfat defaults,uid=phonesystem,gid=phonesystem 0 0

I'm using vfat as I want the USB drive readable in Windows without any fuss, and I'm setting the uid,gid because I'm not clear how to do it with permissions.
 
Last edited:
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
111,951
Messages
589,884
Members
164,842
Latest member
abdullah.alshehri@rewaa