Backing up using "Local Folder" to s3 compatible

Status
Not open for further replies.

Anaphylaxis

Advanced Certified
Joined
Feb 26, 2020
Messages
63
Reaction score
23
I am unable to back up straight to an s3 bucket using s3fs or goofys.
I receive the following error via email:
C#:
Your 3CX backup failed due to the following reason(s):
System.IO.IOException: Operation not supported
  at System.IO.FileStream.WriteNative(ReadOnlySpan`1 source)
  at System.IO.FileStream.FlushWriteBuffer()
  at System.IO.FileStream.Seek(Int64 offset, SeekOrigin origin)
  at System.IO.Compression.ZipArchiveEntry.WriteCrcAndSizesInLocalHeader(Boolean zip64HeaderUsed)
  at System.IO.Compression.ZipArchiveEntry.DirectToArchiveWriterStream.Dispose(Boolean disposing)
  at System.IO.Stream.Close()
  at System.IO.Compression.WrappedStream.Dispose(Boolean disposing)
  at System.IO.Stream.Close()
  at _3cxNetBackupAndRestore._3cxBackup.WriteMetadata(ZipArchive zipStream)
  at _3cxNetBackupAndRestore._3cxBackup.StartBackup(Stream backupStream)
  at ManagementConsoleJS.Services.BackupService.Backup(BackupDescription backupDescription)
The drive shows as 1PB in df. Here are speed tests:
Bash:
xyz@3cx:~$ dd if=/dev/urandom of=/mnt/s3drive/test.dat bs=1MB count=128
128+0 records in
128+0 records out
128000000 bytes (128 MB, 122 MiB) copied, 3.45705 s, 37.0 MB/s
xyz@3cx:~$ dd if=/dev/urandom of=/mnt/s3drive/test.dat bs=1MB count=1024
1024+0 records in
1024+0 records out
1024000000 bytes (1.0 GB, 977 MiB) copied, 18.5052 s, 55.3 MB/s
xyz@3cx:~$ dd if=/dev/urandom of=/mnt/s3drive/test.dat bs=1MB count=512 conv=fdatasync
512+0 records in
512+0 records out
512000000 bytes (512 MB, 488 MiB) copied, 10.1785 s, 50.3 MB/s
These tests were able to be ran by the 'phonesystem' user.
If anyone has any ideas please let me know, as SFTP is the only viable option available right now and in my experience it has been rather slow, slower than backing up locally and running an rsync script 30 min after scheduled time
 
Hi,

Try to backup locally, then use your own script to move the file to the bucket.
 
Hi,

Try to backup locally, then use your own script to move the file to the bucket.
Hi,
How is this a solution?
Are there plans to add s3-compatible backup storage?
 
Hi,
How is this a solution?
Are there plans to add s3-compatible backup storage?
Not a solution, but a suggestion since S3 is not supported by 3CX.

There are currently no plans for S3 support, sounds like something for the Ideas section.
 
Status
Not open for further replies.

Forum statistics

Threads
111,988
Messages
590,158
Members
164,923
Latest member
2B_JPS