Transfer_sessions deleting?

plesk4lyf

Active Member
PartnerNOC
May 21, 2018
32
4
8
Sydney
cPanel Access Level
Root Administrator
Hi Guys,

Not sure if this is the right forum for this question.

Do the sessions in /var/cpanel/transfer_sessions/ get deleted after a time period?

I've noticed on a few servers that the logs of my previous transfers have disappeared.

The records of the transfers also disappear from /var/cpanel/transfer_sessions/whmxfer.sqlite
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hello @plesk4lyf,

The transfer session age is 30 days. At that point, the session expires and the log file is removed as part of /scripts/expunge_expired_transfer_sessions which runs during the maintenance phase of the nightly cPanel update process.

Thank you.
 

plesk4lyf

Active Member
PartnerNOC
May 21, 2018
32
4
8
Sydney
cPanel Access Level
Root Administrator
Hey @cPanelMichael,

Thanks for that!

The way you worded it raises some questions. It sounds like you're saying that transfer sessions aren't just when the transfer is in progress and the two servers are connected. Is that right?

But then if the transfer session isn't expired, then why does cPanel generate another session ID for subsequent transfers from the same source server? Shouldn't it reuse the previous session ID?

Apart from that, if there an option in WHM to not remove the previous transfer logs or should I make a cronjob to backup the transfer_sessions files for safekeeping?

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
The way you worded it raises some questions. It sounds like you're saying that transfer sessions aren't just when the transfer is in progress and the two servers are connected. Is that right?
I should have clarified that a bit more. The session itself won't last for 30 days. It's just the log file associated with the session that will exist for 30 days.

Apart from that, if there an option in WHM to not remove the previous transfer logs or should I make a cronjob to backup the transfer_sessions files for safekeeping?
There's no option to modify the length at which the transfer session log files are removed. You'd need to create a cron job to backup those files if you need them.

Thank you.
 
Thread starter Similar threads Forum Replies Date
B Transfers 2