• February 26, 2025, 04:11:23 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Check status of long running cp or rsync backup in new telnet session  (Read 5145 times)

random404

  • Level 1 Member
  • *
  • Posts: 23

Thanks to a couple of the very helpful guys on this forum I've been backing up my data using rsync and cp where necessary. Problem is that sometimes the process takes a VERY long time to do, and I lose the real time progress in the telnet console if I close the console window.

Here's how it happens: my computer's plugged in directly to the DNS 323, I open a telnet session, then kick off the process and can view the progress. Problem is if I restart my computer, or even just close the telnet window, I can no longer view the progress of the process in real time from the console output.

Is there a way to 'reconnect' to the process and continue seeing the console output in real time? Sometimes these processes can take hours upon hours upon hours, and if I restart my computer the process still continues because I can hear the DNS 323 working, but it's unnerving not being able to see what it's doing.
Logged

scaramanga

  • Level 2 Member
  • **
  • Posts: 99
Re: Check status of long running cp or rsync backup in new telnet session
« Reply #1 on: February 19, 2011, 06:20:46 AM »

Redirect the output to a file. Place the file in a share you can access remotely.
Run rsync like so:
Code: [Select]
rysnc ... >> /mnt/HD_a2/rsync.log 2>&1This will redirect both standard output and errors to rsync.log.

You can add --stats to the command line for a nice summary of the rsync job, which looks like this:
Code: [Select]
Number of files: 26586
Number of files transferred: 67
Total file size: 328.03G bytes
Total transferred file size: 1.63M bytes
Literal data: 1.63M bytes
Matched data: 0 bytes
File list size: 881.94K
File list generation time: 0.073 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 2.52M
Total bytes received: 2.82K

sent 2.52M bytes  received 2.82K bytes  20.77K bytes/sec
total size is 328.03G  speedup is 129975.22
Logged
DNS-323 HW Rev. C1 FW 1.08 fun_plug 0.5
2 x Western Digital WD10EARS-00Y5B1 in Standard mode
(LLC changed to 5 minutes. Partitions aligned to 4K boundary)