Welcome to World of IPTV

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Forum Rules

Our Rules: Read to avoid getting banned!

Advertising

Introduce Yourself to the World with Us!

Resource Database

Find the newest resources around IPTV!

Account upgrade

Upgrade your account to unlock more benefits!

Tutorial Auto-send backup XUI telegram reloaded

halitvhd

Moderator
Staff member
Moderator
Ext. Member
Joined
Jun 11, 2023
Messages
78
Reaction score
457
Points
64
Location
Hungary
Hello, I want to share a script that I made with so that a crontab can be created and executed, and the automatic backup is sent to Telegram. As Telegram has a maximum allowed size of 50MB, what it does is divide it into parts, rename it, and send it.


 
If you are experiencing an error with crontab.
The i attribute means that the file is immutable (cannot be modified), that is why you are getting the error:
crontab: crontabs/root: rename: Operation not permitted
Solution:
Remove the immutable attribute with:

Code:
chattr -i /var/spool/cron/crontabs/root
Then run it again:

Code:
crontab -e

If it was successful, you can also restore the immutable attribute if needed for XUI One:

Code:
chattr +i /var/spool/cron/crontabs/root
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top